home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Mac Tech Notes (DocViewer) / TN-Toolbox < prev   
MacBinary  |  1993-01-05  |  1.4 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Dec 22 11:45:52 1992, modified Tue Jan 5 10:09:04 1993, creator 'HLX2', type 'ONLN', 1401327 bytes "TN-Toolbox" , at 0x15626f 44865 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 4e 2d 54 6f 6f | 6c 62 6f 78 00 00 00 00 |..TN-Too|lbox....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 15 61 ef 00 | 00 af 41 a7 5c f6 c0 a7 |.....a..|..A.\...|
|00000060| 6f 55 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |oU......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c5 c2 00 00 |........|........|
|00000080| 42 75 6e 64 6c 65 73 0d | 54 6f 6f 6c 62 6f 78 09 |Bundles.|Toolbox.|
|00000090| 4d 2e 54 42 2e 42 75 6e | 64 6c 65 73 0d 52 65 76 |M.TB.Bun|dles.Rev|
|000000a0| 69 73 65 64 20 62 79 3a | 09 09 4d 61 72 63 68 20 |ised by:|..March |
|000000b0| 31 39 38 38 0d 57 72 69 | 74 74 65 6e 20 62 79 3a |1988.Wri|tten by:|
|000000c0| 09 47 69 6e 67 65 72 20 | 4a 65 72 6e 69 67 61 6e |.Ginger |Jernigan|
|000000d0| 09 4e 6f 76 65 6d 62 65 | 72 20 31 39 38 38 0d 54 |.Novembe|r 1988.T|
|000000e0| 68 69 73 20 6e 6f 74 65 | 20 64 65 73 63 72 69 62 |his note| describ|
|000000f0| 65 73 20 77 68 61 74 20 | 61 20 62 75 6e 64 6c 65 |es what |a bundle|
|00000100| 20 69 73 20 61 6e 64 20 | 68 6f 77 20 74 6f 20 63 | is and |how to c|
|00000110| 72 65 61 74 65 20 6f 6e | 65 2e 0d 41 20 62 75 6e |reate on|e..A bun|
|00000120| 64 6c 65 20 69 73 20 61 | 20 63 6f 6c 6c 65 63 74 |dle is a| collect|
|00000130| 69 6f 6e 20 6f 66 20 72 | 65 73 6f 75 72 63 65 73 |ion of r|esources|
|00000140| 2e 20 42 75 6e 64 6c 65 | 73 20 63 61 6e 20 62 65 |. Bundle|s can be|
|00000150| 20 75 73 65 64 20 66 6f | 72 20 61 20 6e 75 6d 62 | used fo|r a numb|
|00000160| 65 72 20 6f 66 20 64 69 | 66 66 65 72 65 6e 74 20 |er of di|fferent |
|00000170| 70 75 72 70 6f 73 65 73 | 2c 20 61 6e 64 20 61 72 |purposes|, and ar|
|00000180| 65 20 63 75 72 72 65 6e | 74 6c 79 20 75 73 65 64 |e curren|tly used|
|00000190| 20 62 79 20 74 68 65 20 | 46 69 6e 64 65 72 20 69 | by the |Finder i|
|000001a0| 74 6f 20 74 69 65 20 61 | 6e 20 69 63 6f 6e 20 74 |to tie a|n icon t|
|000001b0| 6f 20 61 20 66 69 6c 65 | 20 74 79 70 65 2c 20 61 |o a file| type, a|
|000001c0| 6c 6c 6f 77 69 6e 67 20 | 79 6f 75 72 20 61 70 70 |llowing |your app|
|000001d0| 6c 69 63 61 74 69 6f 6e | 20 6f 72 20 64 61 74 61 |lication| or data|
|000001e0| 20 66 69 6c 65 20 74 6f | 20 68 61 76 65 20 69 74 | file to| have it|
|000001f0| 73 20 6f 77 6e 20 69 63 | 6f 6e 2e 0d 48 6f 77 20 |s own ic|on..How |
|00000200| 74 6f 20 43 72 65 61 74 | 65 20 61 20 42 75 6e 64 |to Creat|e a Bund|
|00000210| 6c 65 0d 41 20 62 75 6e | 64 6c 65 20 69 73 20 61 |le.A bun|dle is a|
|00000220| 20 63 6f 6c 6c 65 63 74 | 69 6f 6e 20 6f 66 20 72 | collect|ion of r|
|00000230| 65 73 6f 75 72 63 65 73 | 2e 20 54 6f 20 6d 61 6b |esources|. To mak|
|00000240| 65 20 61 20 62 75 6e 64 | 6c 65 20 66 6f 72 20 66 |e a bund|le for f|
|00000250| 69 6e 64 65 72 20 69 63 | 6f 6e 73 2c 20 77 65 20 |inder ic|ons, we |
|00000260| 6e 65 65 64 20 74 6f 20 | 73 65 74 20 75 70 20 66 |need to |set up f|
|00000270| 6f 75 72 20 74 79 70 65 | 73 20 6f 66 20 72 65 73 |our type|s of res|
|00000280| 6f 75 72 63 65 73 3a 20 | 61 6e 20 49 43 4e 23 2c |ources: |an ICN#,|
|00000290| 20 61 6e 20 46 52 45 46 | 2c 20 61 20 63 72 65 61 | an FREF|, a crea|
|000002a0| 74 6f 72 20 53 54 52 20 | 61 6e 64 20 61 20 42 4e |tor STR |and a BN|
|000002b0| 44 4c 2e 0d 54 68 65 20 | 49 43 4e 23 20 72 65 73 |DL..The |ICN# res|
|000002c0| 6f 75 72 63 65 20 74 79 | 70 65 20 69 73 20 61 6e |ource ty|pe is an|
|000002d0| 20 69 63 6f 6e 20 6c 69 | 73 74 2e 20 45 61 63 68 | icon li|st. Each|
|000002e0| 20 49 43 4e 23 20 72 65 | 73 6f 75 72 63 65 20 63 | ICN# re|source c|
|000002f0| 6f 6e 74 61 69 6e 73 20 | 6f 6e 65 20 6f 72 20 6d |ontains |one or m|
|00000300| 6f 72 65 20 69 63 6f 6e | 73 2c 20 6f 6e 20 61 66 |ore icon|s, on af|
|00000310| 74 65 72 20 61 6e 6f 74 | 68 65 72 2e 20 46 6f 72 |ter anot|her. For|
|00000320| 20 46 69 6e 64 65 72 20 | 62 75 6e 64 6c 65 20 69 | Finder |bundle i|
|00000330| 63 6f 6e 73 2c 20 74 68 | 65 72 65 20 61 72 65 20 |cons, th|ere are |
|00000340| 74 77 6f 20 69 63 6f 6e | 73 20 69 6e 20 65 61 63 |two icon|s in eac|
|00000350| 68 20 49 43 4e 23 3a 20 | 6f 6e 65 20 66 6f 72 20 |h ICN#: |one for |
|00000360| 74 68 65 20 69 63 6f 6e | 20 69 74 73 65 6c 66 20 |the icon| itself |
|00000370| 61 6e 64 20 6f 6e 65 20 | 66 6f 72 20 74 68 65 20 |and one |for the |
|00000380| 6d 61 73 6b 2e 20 49 6e | 20 6f 75 72 20 73 61 6d |mask. In| our sam|
|00000390| 70 6c 65 20 62 75 6e 64 | 6c 65 2c 20 77 65 20 68 |ple bund|le, we h|
|000003a0| 61 76 65 20 74 77 6f 20 | 66 69 6c 65 20 74 79 70 |ave two |file typ|
|000003b0| 65 73 2c 20 65 61 63 68 | 20 77 69 74 68 20 69 74 |es, each| with it|
|000003c0| 73 20 6f 77 6e 20 69 63 | 6f 6e 2e 20 54 6f 20 64 |s own ic|on. To d|
|000003d0| 65 66 69 6e 65 20 74 68 | 65 20 69 63 6f 6e 73 20 |efine th|e icons |
|000003e0| 66 6f 72 20 74 68 65 73 | 65 20 66 69 6c 65 73 20 |for thes|e files |
|000003f0| 77 65 20 77 6f 75 6c 64 | 20 65 6e 74 65 72 20 74 |we would| enter t|
|00000400| 68 69 73 20 69 6e 74 6f | 20 6f 75 72 20 52 65 7a |his into| our Rez|
|00000410| 20 69 6e 70 75 74 20 66 | 69 6c 65 3a 0d 09 72 65 | input f|ile:..re|
|00000420| 73 6f 75 72 63 65 20 27 | 49 43 4e 23 27 20 28 37 |source '|ICN#' (7|
|00000430| 33 32 29 20 7b 20 2f 2a | 20 66 69 72 73 74 20 69 |32) { /*| first i|
|00000440| 63 6f 6e 3a 20 74 68 65 | 20 49 44 20 6e 75 6d 62 |con: the| ID numb|
|00000450| 65 72 20 63 61 6e 20 62 | 65 20 61 6e 79 74 68 69 |er can b|e anythi|
|00000460| 6e 67 20 2a 2f 0d 09 20 | 20 20 7b 20 20 20 20 20 |ng */.. | { |
|00000470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|00000480| 2a 20 66 69 72 73 74 2c | 20 74 68 65 20 69 63 6f |* first,| the ico|
|00000490| 6e 20 2a 2f 0d 09 20 20 | 20 20 20 20 24 22 46 46 |n */.. | $"FF|
|000004a0| 20 46 46 20 46 46 20 46 | 46 22 20 20 20 20 2f 2a | FF FF F|F" /*|
|000004b0| 20 65 61 63 68 20 6c 69 | 6e 65 20 69 73 20 34 20 | each li|ne is 4 |
|000004c0| 62 79 74 65 73 20 28 33 | 32 20 62 69 74 73 29 20 |bytes (3|2 bits) |
|000004d0| 2a 2f 0d 09 20 20 20 20 | 20 20 24 22 46 30 20 30 |*/.. | $"F0 0|
|000004e0| 39 20 43 44 20 44 44 22 | 20 20 20 20 2f 2a 20 33 |9 CD DD"| /* 3|
|000004f0| 32 20 6c 69 6e 65 73 20 | 74 6f 74 61 6c 20 66 6f |2 lines |total fo|
|00000500| 72 20 69 63 6f 6e 20 2a | 2f 0d 09 20 20 20 20 20 |r icon *|/.. |
|00000510| 20 2e 2e 2e 0d 09 20 20 | 20 20 20 20 24 22 46 46 | ..... | $"FF|
|00000520| 20 46 46 20 46 46 20 46 | 46 22 20 20 20 20 2f 2a | FF FF F|F" /*|
|00000530| 20 33 32 6e 64 20 6c 69 | 6e 65 20 6f 66 20 69 63 | 32nd li|ne of ic|
|00000540| 6f 6e 20 2a 2f 0d 09 20 | 20 20 20 20 20 2c 20 20 |on */.. | , |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|00000560| 2a 20 6e 6f 77 2c 20 74 | 68 65 20 6d 61 73 6b 20 |* now, t|he mask |
|00000570| 2a 2f 0d 09 20 20 20 20 | 20 20 24 22 46 46 20 46 |*/.. | $"FF F|
|00000580| 46 20 46 46 20 46 46 22 | 20 20 20 20 2f 2a 20 33 |F FF FF"| /* 3|
|00000590| 32 20 6c 69 6e 65 73 20 | 74 6f 74 61 6c 20 66 6f |2 lines |total fo|
|000005a0| 72 20 6d 61 73 6b 20 2a | 2f 0d 09 20 20 20 20 20 |r mask *|/.. |
|000005b0| 20 24 22 46 46 20 46 46 | 20 46 46 20 46 46 22 0d | $"FF FF| FF FF".|
|000005c0| 09 20 20 20 20 20 20 2e | 2e 2e 0d 09 20 20 20 20 |. .|.... |
|000005d0| 20 20 24 22 46 46 20 46 | 46 20 46 46 20 46 46 22 | $"FF F|F FF FF"|
|000005e0| 20 20 20 20 2f 2a 20 33 | 32 6e 64 20 6c 69 6e 65 | /* 3|2nd line|
|000005f0| 20 6f 66 20 6d 61 73 6b | 2a 2f 0d 09 20 20 20 7d | of mask|*/.. }|
|00000600| 0d 09 7d 3b 0d 09 72 65 | 73 6f 75 72 63 65 20 27 |..};..re|source '|
|00000610| 49 43 4e 23 27 20 28 37 | 33 33 29 20 7b 20 2f 2a |ICN#' (7|33) { /*|
|00000620| 20 73 65 63 6f 6e 64 20 | 69 63 6f 6e 20 2a 2f 0d | second |icon */.|
|00000630| 09 20 20 20 7b 0d 09 20 | 20 20 20 20 20 24 22 46 |. {.. | $"F|
|00000640| 46 20 46 46 20 46 46 20 | 46 46 22 0d 09 20 20 20 |F FF FF |FF".. |
|00000650| 20 20 20 2e 2e 2e 0d 09 | 20 20 20 20 20 20 2c 0d | .....| ,.|
|00000660| 09 20 20 20 20 20 20 24 | 22 46 46 20 46 46 20 46 |. $|"FF FF F|
|00000670| 46 20 46 46 22 0d 09 20 | 20 20 20 20 20 2e 2e 2e |F FF".. | ...|
|00000680| 0d 09 20 20 20 7d 0d 09 | 7d 3b 0d 4e 6f 77 20 74 |.. }..|};.Now t|
|00000690| 68 61 74 20 77 65 d5 76 | 65 20 64 65 66 69 6e 65 |hat we.v|e define|
|000006a0| 64 20 6f 75 72 20 69 63 | 6f 6e 73 20 77 65 20 63 |d our ic|ons we c|
|000006b0| 61 6e 20 73 65 74 20 75 | 70 20 74 68 65 20 46 52 |an set u|p the FR|
|000006c0| 45 46 73 2e 20 41 6e 20 | 46 52 45 46 20 69 73 20 |EFs. An |FREF is |
|000006d0| 61 20 66 69 6c 65 20 74 | 79 70 65 20 72 65 66 65 |a file t|ype refe|
|000006e0| 72 65 6e 63 65 3b 20 79 | 6f 75 20 6e 65 65 64 20 |rence; y|ou need |
|000006f0| 6f 6e 65 20 66 6f 72 20 | 65 61 63 68 20 66 69 6c |one for |each fil|
|00000700| 65 20 74 79 70 65 20 74 | 68 61 74 20 68 61 73 20 |e type t|hat has |
|00000710| 61 6e 20 69 63 6f 6e 2e | 20 49 74 20 74 69 65 73 |an icon.| It ties|
|00000720| 20 61 20 66 69 6c 65 20 | 74 79 70 65 20 74 6f 20 | a file |type to |
|00000730| 61 20 6c 6f 63 61 6c 20 | 69 63 6f 6e 20 72 65 73 |a local |icon res|
|00000740| 6f 75 72 63 65 20 49 44 | 2e 20 54 68 69 73 20 77 |ource ID|. This w|
|00000750| 69 6c 6c 20 62 65 20 6d | 61 70 70 65 64 20 62 79 |ill be m|apped by|
|00000760| 20 74 68 65 20 42 4e 44 | 4c 20 6f 6e 74 6f 20 61 | the BND|L onto a|
|00000770| 6e 20 61 63 74 75 61 6c | 20 72 65 73 6f 75 72 63 |n actual| resourc|
|00000780| 65 20 49 44 20 6e 75 6d | 62 65 72 20 6f 66 20 61 |e ID num|ber of a|
|00000790| 6e 20 49 43 4e 23 20 72 | 65 73 6f 75 72 63 65 2e |n ICN# r|esource.|
|000007a0| 20 4f 75 72 20 46 52 45 | 46 73 20 77 69 6c 6c 20 | Our FRE|Fs will |
|000007b0| 6c 6f 6f 6b 20 6c 69 6b | 65 20 74 68 69 73 3a 0d |look lik|e this:.|
|000007c0| 09 72 65 73 6f 75 72 63 | 65 20 27 46 52 45 46 27 |.resourc|e 'FREF'|
|000007d0| 20 28 38 31 36 29 20 7b | 20 2f 2a 20 66 69 6c 65 | (816) {| /* file|
|000007e0| 20 74 79 70 65 20 72 65 | 66 65 72 65 6e 63 65 20 | type re|ference |
|000007f0| 66 6f 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |for appl|ication |
|00000800| 69 63 6f 6e 20 2a 2f 0d | 09 20 20 20 7b 0d 09 20 |icon */.|. {.. |
|00000810| 20 20 20 20 20 27 41 50 | 50 4c 27 2c 20 36 30 35 | 'AP|PL', 605|
|00000820| 2c 20 2f 2a 20 74 68 65 | 20 74 79 70 65 20 69 73 |, /* the| type is|
|00000830| 20 41 50 50 4c 28 69 63 | 61 74 69 6f 6e 29 2c 20 | APPL(ic|ation), |
|00000840| 74 68 65 20 6c 6f 63 61 | 6c 20 49 44 20 69 73 20 |the loca|l ID is |
|00000850| 36 30 35 20 2a 2f 0d 09 | 20 20 20 20 20 20 22 22 |605 */..| ""|
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 74 68 | | /* th|
|00000870| 69 73 20 73 74 72 69 6e | 67 20 73 68 6f 75 6c 64 |is strin|g should|
|00000880| 20 62 65 20 65 6d 70 74 | 79 20 28 69 74 20 69 73 | be empt|y (it is|
|00000890| 20 75 6e 75 73 65 64 29 | 20 2a 2f 0d 09 20 20 20 | unused)| */.. |
|000008a0| 7d 0d 09 7d 3b 0d 09 72 | 65 73 6f 75 72 63 65 20 |}..};..r|esource |
|000008b0| 27 46 52 45 46 27 20 28 | 38 31 37 29 20 7b 20 2f |'FREF' (|817) { /|
|000008c0| 2a 20 66 69 6c 65 20 74 | 79 70 65 20 72 65 66 65 |* file t|ype refe|
|000008d0| 72 65 6e 63 65 20 66 6f | 72 20 61 20 64 6f 63 75 |rence fo|r a docu|
|000008e0| 6d 65 6e 74 20 69 63 6f | 6e 20 2a 2f 0d 09 20 20 |ment ico|n */.. |
|000008f0| 20 7b 0d 09 20 20 20 20 | 20 20 27 54 45 58 54 27 | {.. | 'TEXT'|
|00000900| 2c 20 36 31 32 2c 20 2f | 2a 20 74 68 65 20 74 79 |, 612, /|* the ty|
|00000910| 70 65 20 69 73 20 54 45 | 58 54 2c 20 74 68 65 20 |pe is TE|XT, the |
|00000920| 6c 6f 63 61 6c 20 49 44 | 20 69 73 20 36 31 32 20 |local ID| is 612 |
|00000930| 2a 2f 0d 09 20 20 20 20 | 20 20 22 22 20 20 20 20 |*/.. | "" |
|00000940| 20 20 20 20 20 20 20 2f | 2a 20 74 68 69 73 20 73 | /|* this s|
|00000950| 74 72 69 6e 67 20 73 68 | 6f 75 6c 64 20 62 65 20 |tring sh|ould be |
|00000960| 65 6d 70 74 79 20 28 69 | 74 20 69 73 20 75 6e 75 |empty (i|t is unu|
|00000970| 73 65 64 29 20 2a 2f 0d | 09 20 20 20 7d 0d 09 7d |sed) */.|. }..}|
|00000980| 3b 0d 54 68 65 20 72 65 | 61 73 6f 6e 20 74 68 61 |;.The re|ason tha|
|00000990| 74 20 79 6f 75 20 73 70 | 65 63 69 66 79 20 74 68 |t you sp|ecify th|
|000009a0| 65 20 6c 6f 63 61 6c 20 | 49 44 2c 20 72 61 74 68 |e local |ID, rath|
|000009b0| 65 72 20 74 68 61 6e 20 | 74 68 65 20 61 63 74 75 |er than |the actu|
|000009c0| 61 6c 20 72 65 73 6f 75 | 72 63 65 20 49 44 20 6f |al resou|rce ID o|
|000009d0| 66 20 74 68 65 20 49 43 | 4e 23 20 69 73 20 74 68 |f the IC|N# is th|
|000009e0| 61 74 20 74 68 65 20 46 | 69 6e 64 65 72 20 77 69 |at the F|inder wi|
|000009f0| 6c 6c 20 63 6f 70 79 20 | 61 6c 6c 20 6f 66 20 74 |ll copy |all of t|
|00000a00| 68 65 20 62 75 6e 64 6c | 65 20 72 65 73 6f 75 72 |he bundl|e resour|
|00000a10| 63 65 73 20 69 6e 74 6f | 20 74 68 65 20 44 65 73 |ces into| the Des|
|00000a20| 6b 74 6f 70 20 66 69 6c | 65 20 61 6e 64 20 72 65 |ktop fil|e and re|
|00000a30| 6e 75 6d 62 65 72 20 74 | 68 65 6d 20 74 6f 20 61 |number t|hem to a|
|00000a40| 76 6f 69 64 20 63 6f 6e | 66 6c 69 63 74 73 2e 20 |void con|flicts. |
|00000a50| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|00000a60| 74 68 65 20 61 63 74 75 | 61 6c 20 49 44 73 20 77 |the actu|al IDs w|
|00000a70| 69 6c 6c 20 63 68 61 6e | 67 65 2c 20 62 75 74 20 |ill chan|ge, but |
|00000a80| 74 68 65 20 6c 6f 63 61 | 6c 20 49 44 73 20 77 69 |the loca|l IDs wi|
|00000a90| 6c 6c 20 72 65 6d 61 69 | 6e 20 74 68 65 20 73 61 |ll remai|n the sa|
|00000aa0| 6d 65 2e 0d 45 76 65 72 | 79 20 61 70 70 6c 69 63 |me..Ever|y applic|
|00000ab0| 61 74 69 6f 6e 20 28 6f | 72 20 6f 74 68 65 72 20 |ation (o|r other |
|00000ac0| 66 69 6c 65 20 77 69 74 | 68 20 61 20 62 75 6e 64 |file wit|h a bund|
|00000ad0| 6c 65 29 20 68 61 73 20 | 61 20 75 6e 69 71 75 65 |le) has |a unique|
|00000ae0| 20 66 6f 75 72 2d 63 68 | 61 72 61 63 74 65 72 20 | four-ch|aracter |
|00000af0| 73 69 67 6e 61 74 75 72 | 65 2e 20 54 68 65 20 46 |signatur|e. The F|
|00000b00| 69 6e 64 65 72 20 75 73 | 65 73 20 74 68 69 73 20 |inder us|es this |
|00000b10| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 61 6e 20 61 |to ident|ify an a|
|00000b20| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 54 68 65 20 |pplicati|on. The |
|00000b30| 63 72 65 61 74 6f 72 20 | 72 65 73 6f 75 72 63 65 |creator |resource|
|00000b40| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 61 | that co|ntains a|
|00000b50| 20 73 69 6e 67 6c 65 20 | 73 74 72 69 6e 67 2c 20 | single |string, |
|00000b60| 61 6e 64 20 73 68 6f 75 | 6c 64 20 62 65 20 64 65 |and shou|ld be de|
|00000b70| 66 69 6e 65 64 20 6c 69 | 6b 65 20 74 68 69 73 3a |fined li|ke this:|
|00000b80| 0d 09 74 79 70 65 20 27 | 4d 49 4e 45 27 20 61 73 |..type '|MINE' as|
|00000b90| 20 27 53 54 52 20 27 3b | 20 2f 2a 20 4d 49 4e 45 | 'STR ';| /* MINE|
|00000ba0| 20 69 73 20 74 68 65 20 | 73 69 67 6e 61 74 75 72 | is the |signatur|
|00000bb0| 65 20 2a 2f 0d 09 72 65 | 73 6f 75 72 63 65 20 27 |e */..re|source '|
|00000bc0| 4d 49 4e 45 27 20 28 30 | 29 20 7b 20 2f 2a 20 74 |MINE' (0|) { /* t|
|00000bd0| 68 65 20 63 72 65 61 74 | 6f 72 20 72 65 73 6f 75 |he creat|or resou|
|00000be0| 72 63 65 20 49 44 20 6d | 75 73 74 20 62 65 20 30 |rce ID m|ust be 0|
|00000bf0| 20 2a 2f 0d 09 20 20 20 | 22 4d 79 50 72 6f 67 72 | */.. |"MyProgr|
|00000c00| 61 6d 20 31 2e 30 20 43 | 6f 70 79 72 69 67 68 74 |am 1.0 C|opyright|
|00000c10| 20 31 39 38 38 22 0d 09 | 7d 3b 0d 4e 6f 77 20 66 | 1988"..|};.Now f|
|00000c20| 6f 72 20 74 68 65 20 42 | 4e 44 4c 20 72 65 73 6f |or the B|NDL reso|
|00000c30| 75 72 63 65 2e 20 54 68 | 65 20 42 4e 44 4c 20 72 |urce. Th|e BNDL r|
|00000c40| 65 73 6f 75 72 63 65 20 | 61 73 73 6f 63 69 61 74 |esource |associat|
|00000c50| 65 73 20 6c 6f 63 61 6c | 20 72 65 73 6f 75 72 63 |es local| resourc|
|00000c60| 65 20 49 44 73 20 77 69 | 74 68 20 61 63 74 75 61 |e IDs wi|th actua|
|00000c70| 6c 20 72 65 73 6f 75 72 | 63 65 20 49 44 73 2c 20 |l resour|ce IDs, |
|00000c80| 61 6e 64 20 61 6c 73 6f | 20 74 65 6c 6c 73 20 74 |and also| tells t|
|00000c90| 68 65 20 46 69 6e 64 65 | 72 20 77 68 61 74 20 66 |he Finde|r what f|
|00000ca0| 69 6c 65 20 74 79 70 65 | 73 20 65 78 69 73 74 2c |ile type|s exist,|
|00000cb0| 20 61 6e 64 20 77 68 69 | 63 68 20 49 43 4e 23 73 | and whi|ch ICN#s|
|00000cc0| 20 61 6e 64 20 46 52 45 | 46 73 20 61 72 65 20 70 | and FRE|Fs are p|
|00000cd0| 61 72 74 20 6f 66 20 74 | 68 65 20 62 75 6e 64 6c |art of t|he bundl|
|00000ce0| 65 2e 20 54 68 65 20 72 | 65 73 6f 75 72 63 65 20 |e. The r|esource |
|00000cf0| 6c 6f 6f 6b 73 20 6c 69 | 6b 65 20 74 68 69 73 3a |looks li|ke this:|
|00000d00| 0d 09 72 65 73 6f 75 72 | 63 65 20 27 42 4e 44 4c |..resour|ce 'BNDL|
|00000d10| 27 20 28 31 32 38 29 20 | 7b 20 2f 2a 20 74 68 65 |' (128) |{ /* the|
|00000d20| 20 62 75 6e 64 6c 65 20 | 72 65 73 6f 75 72 63 65 | bundle |resource|
|00000d30| 20 49 44 20 73 68 6f 75 | 6c 64 20 62 65 20 30 20 | ID shou|ld be 0 |
|00000d40| 2a 2f 0d 09 20 20 20 27 | 4d 49 4e 45 27 2c 20 2f |*/.. '|MINE', /|
|00000d50| 2a 20 73 69 67 6e 61 74 | 75 72 65 20 6f 66 20 74 |* signat|ure of t|
|00000d60| 68 69 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |his appl|ication |
|00000d70| 2a 2f 0d 09 20 20 20 30 | 2c 20 2f 2a 20 74 68 65 |*/.. 0|, /* the|
|00000d80| 20 63 72 65 61 74 6f 72 | 20 72 65 73 6f 75 72 63 | creator| resourc|
|00000d90| 65 20 49 44 20 28 74 68 | 69 73 20 6d 75 73 74 20 |e ID (th|is must |
|00000da0| 62 65 20 30 29 20 2a 2f | 0d 09 20 20 20 7b 0d 09 |be 0) */|.. {..|
|00000db0| 20 20 20 20 20 20 27 49 | 43 4e 23 27 2c 20 2f 2a | 'I|CN#', /*|
|00000dc0| 20 6c 6f 63 61 6c 20 72 | 65 73 6f 75 72 63 65 20 | local r|esource |
|00000dd0| 49 44 20 6d 61 70 70 69 | 6e 67 20 66 6f 72 20 69 |ID mappi|ng for i|
|00000de0| 63 6f 6e 73 20 2a 2f 0d | 09 20 20 20 20 20 20 7b |cons */.|. {|
|00000df0| 0d 09 20 20 20 20 20 20 | 20 20 20 36 30 35 2c 20 |.. | 605, |
|00000e00| 37 33 32 2c 20 2f 2a 20 | 49 43 4e 23 20 6c 6f 63 |732, /* |ICN# loc|
|00000e10| 61 6c 20 49 44 20 36 30 | 35 20 6d 61 70 73 20 74 |al ID 60|5 maps t|
|00000e20| 6f 20 37 33 32 20 2a 2f | 0d 09 20 20 20 20 20 20 |o 732 */|.. |
|00000e30| 20 20 20 36 31 32 2c 20 | 37 33 33 20 20 2f 2a 20 | 612, |733 /* |
|00000e40| 49 43 4e 23 20 6c 6f 63 | 61 6c 20 49 44 20 36 31 |ICN# loc|al ID 61|
|00000e50| 32 20 6d 61 70 73 20 74 | 6f 20 37 33 33 20 2a 2f |2 maps t|o 733 */|
|00000e60| 0d 09 20 20 20 20 20 20 | 7d 2c 0d 09 20 20 20 20 |.. |},.. |
|00000e70| 20 20 27 46 52 45 46 27 | 2c 20 2f 2a 20 6c 6f 63 | 'FREF'|, /* loc|
|00000e80| 61 6c 20 72 65 73 6f 75 | 72 63 65 20 49 44 20 6d |al resou|rce ID m|
|00000e90| 61 70 70 69 6e 67 20 66 | 6f 72 20 66 69 6c 65 20 |apping f|or file |
|00000ea0| 74 79 70 65 20 72 65 66 | 65 72 65 6e 63 65 73 20 |type ref|erences |
|00000eb0| 2a 2f 0d 09 20 20 20 20 | 20 20 7b 0d 09 20 20 20 |*/.. | {.. |
|00000ec0| 20 20 20 20 20 20 35 32 | 33 2c 20 38 31 36 2c 20 | 52|3, 816, |
|00000ed0| 2f 2a 20 46 52 45 46 20 | 6c 6f 63 61 6c 20 49 44 |/* FREF |local ID|
|00000ee0| 20 35 32 33 20 6d 61 70 | 73 20 74 6f 20 38 31 36 | 523 map|s to 816|
|00000ef0| 20 2a 2f 0d 09 20 20 20 | 20 20 20 20 20 20 35 35 | */.. | 55|
|00000f00| 35 2c 20 38 31 37 20 20 | 2f 2a 20 46 52 45 46 20 |5, 817 |/* FREF |
|00000f10| 6c 6f 63 61 6c 20 49 44 | 20 35 35 35 20 6d 61 70 |local ID| 555 map|
|00000f20| 73 20 74 6f 20 38 31 37 | 20 2a 2f 0d 09 20 20 20 |s to 817| */.. |
|00000f30| 20 20 20 7d 2c 0d 57 68 | 65 6e 20 79 6f 75 20 61 | },.Wh|en you a|
|00000f40| 72 65 20 69 6e 20 74 68 | 65 20 46 69 6e 64 65 72 |re in th|e Finder|
|00000f50| 2c 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |, your a|pplicati|
|00000f60| 6f 6e 2c 20 74 79 70 65 | 20 41 50 50 4c 20 28 46 |on, type| APPL (F|
|00000f70| 52 45 46 20 38 31 36 29 | 2c 20 77 69 6c 6c 20 62 |REF 816)|, will b|
|00000f80| 65 20 64 69 73 70 6c 61 | 79 65 64 20 77 69 74 68 |e displa|yed with|
|00000f90| 20 69 63 6f 6e 20 6c 6f | 63 61 6c 20 49 44 20 36 | icon lo|cal ID 6|
|00000fa0| 30 35 20 28 66 72 6f 6d | 20 74 68 65 20 46 52 45 |05 (from| the FRE|
|00000fb0| 46 20 72 65 73 6f 75 72 | 63 65 29 2e 20 54 68 69 |F resour|ce). Thi|
|00000fc0| 73 20 69 73 20 49 43 4e | 23 20 37 33 32 2e 20 46 |s is ICN|# 732. F|
|00000fd0| 69 6c 65 73 20 6f 66 20 | 74 79 70 65 20 54 45 58 |iles of |type TEX|
|00000fe0| 54 20 28 46 52 45 46 20 | 38 31 37 29 20 63 72 65 |T (FREF |817) cre|
|00000ff0| 61 74 65 64 20 62 79 20 | 79 6f 75 72 20 61 70 70 |ated by |your app|
|00001000| 6c 69 63 61 74 69 6f 6e | 20 77 69 6c 6c 20 62 65 |lication| will be|
|00001010| 20 64 69 73 70 6c 61 79 | 65 64 20 77 69 74 68 20 | display|ed with |
|00001020| 69 63 6f 6e 20 6c 6f 63 | 61 6c 20 49 44 20 36 31 |icon loc|al ID 61|
|00001030| 32 20 28 66 72 6f 6d 20 | 74 68 65 20 46 52 45 46 |2 (from |the FREF|
|00001040| 20 72 65 73 6f 75 72 63 | 65 29 2e 20 54 68 69 73 | resourc|e). This|
|00001050| 20 69 73 20 49 43 4e 23 | 20 37 33 33 2e 0d 48 6f | is ICN#| 733..Ho|
|00001060| 77 20 74 68 65 20 46 69 | 6e 64 65 72 20 55 73 65 |w the Fi|nder Use|
|00001070| 73 20 42 75 6e 64 6c 65 | 73 0d 49 66 20 61 20 66 |s Bundle|s.If a f|
|00001080| 69 6c 65 20 68 61 73 20 | 74 68 65 20 62 75 6e 64 |ile has |the bund|
|00001090| 6c 65 20 62 69 74 20 73 | 65 74 2c 20 62 75 74 20 |le bit s|et, but |
|000010a0| 74 68 65 20 62 75 6e 64 | 6c 65 20 69 73 6e d5 74 |the bund|le isn.t|
|000010b0| 20 69 6e 20 74 68 65 20 | 44 65 73 6b 74 6f 70 20 | in the |Desktop |
|000010c0| 66 69 6c 65 2c 20 74 68 | 65 20 46 69 6e 64 65 72 |file, th|e Finder|
|000010d0| 20 6c 6f 6f 6b 73 20 66 | 6f 72 20 61 20 42 4e 44 | looks f|or a BND|
|000010e0| 4c 20 72 65 73 6f 75 72 | 63 65 2e 20 49 66 20 74 |L resour|ce. If t|
|000010f0| 68 65 20 42 4e 44 4c 20 | 72 65 73 6f 75 72 63 65 |he BNDL |resource|
|00001100| 20 6d 61 74 63 68 65 73 | 20 74 68 65 20 73 69 67 | matches| the sig|
|00001110| 6e 61 74 75 72 65 20 6f | 66 20 74 68 65 61 70 70 |nature o|f theapp|
|00001120| 6c 69 63 61 74 69 6f 6e | 2c 20 74 68 65 20 46 69 |lication|, the Fi|
|00001130| 6e 64 65 72 20 74 68 65 | 6e 20 6d 61 6b 65 73 20 |nder the|n makes |
|00001140| 61 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 62 75 |a copy o|f the bu|
|00001150| 6e 64 6c 65 20 61 6e 64 | 20 70 75 74 73 20 69 74 |ndle and| puts it|
|00001160| 20 69 6e 20 74 68 65 20 | 44 65 73 6b 74 6f 70 20 | in the |Desktop |
|00001170| 66 69 6c 65 2e 20 54 68 | 65 20 66 69 6c 65 20 69 |file. Th|e file i|
|00001180| 73 20 74 68 65 6e 20 64 | 69 73 70 6c 61 79 65 64 |s then d|isplayed|
|00001190| 20 77 69 74 68 20 69 74 | 73 20 61 73 73 6f 63 69 | with it|s associ|
|000011a0| 61 74 65 64 20 69 63 6f | 6e 2e 0d 49 66 20 61 20 |ated ico|n..If a |
|000011b0| 66 69 6c 65 20 68 61 73 | 20 6c 6f 73 74 20 69 74 |file has| lost it|
|000011c0| 73 20 69 63 6f 6e 20 28 | 69 74 d5 73 20 6f 6e 20 |s icon (|it.s on |
|000011d0| 61 20 64 69 73 6b 20 77 | 69 74 68 6f 75 74 20 74 |a disk w|ithout t|
|000011e0| 68 65 20 66 69 6c 65 20 | 63 6f 6e 74 61 69 6e 69 |he file |containi|
|000011f0| 6e 67 20 62 75 6e 64 6c | 65 20 61 6e 64 20 74 68 |ng bundl|e and th|
|00001200| 65 20 44 65 73 6b 74 6f | 70 20 66 69 6c 65 20 64 |e Deskto|p file d|
|00001210| 6f 65 73 6e d5 74 20 63 | 6f 6e 74 61 69 6e 20 74 |oesn.t c|ontain t|
|00001220| 68 65 20 62 75 6e 64 6c | 65 29 2c 20 74 68 65 6e |he bundl|e), then|
|00001230| 20 69 74 20 77 69 6c 6c | 20 62 65 20 64 69 73 70 | it will| be disp|
|00001240| 6c 61 79 65 64 20 77 69 | 74 68 20 74 68 65 20 64 |layed wi|th the d|
|00001250| 65 66 61 75 6c 74 20 64 | 6f 63 75 6d 65 6e 74 20 |efault d|ocument |
|00001260| 69 63 6f 6e 20 75 6e 74 | 69 6c 20 74 68 65 20 46 |icon unt|il the F|
|00001270| 69 6e 64 65 72 20 65 6e | 63 6f 75 6e 74 65 72 73 |inder en|counters|
|00001280| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 66 | a copy |of the f|
|00001290| 69 6c 65 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |ile that| contain|
|000012a0| 73 20 74 68 65 20 72 69 | 67 68 74 20 62 75 6e 64 |s the ri|ght bund|
|000012b0| 6c 65 2e 20 54 68 65 20 | 46 69 6e 64 65 72 20 74 |le. The |Finder t|
|000012c0| 68 65 6e 20 6d 61 6b 65 | 73 20 61 20 63 6f 70 79 |hen make|s a copy|
|000012d0| 20 6f 66 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | of the |applicat|
|000012e0| 69 6f 6e d5 73 20 62 75 | 6e 64 6c 65 20 28 72 65 |ion.s bu|ndle (re|
|000012f0| 6e 75 6d 62 65 72 69 6e | 67 20 72 65 73 6f 75 72 |numberin|g resour|
|00001300| 63 65 73 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |ces if n|ecessary|
|00001310| 29 20 61 6e 64 20 70 6c | 61 63 65 73 20 69 74 20 |) and pl|aces it |
|00001320| 69 6e 20 74 68 65 20 44 | 65 73 6b 74 6f 70 20 66 |in the D|esktop f|
|00001330| 69 6c 65 20 6f 66 20 74 | 68 61 74 20 64 69 73 6b |ile of t|hat disk|
|00001340| 2e 0d 50 72 6f 62 6c 65 | 6d 73 20 54 68 61 74 20 |..Proble|ms That |
|00001350| 4d 61 79 20 41 72 69 73 | 65 0d 54 68 65 72 65 20 |May Aris|e.There |
|00001360| 61 72 65 20 74 69 6d 65 | 73 20 77 68 65 6e 20 79 |are time|s when y|
|00001370| 6f 75 20 68 61 76 65 20 | 73 65 74 20 75 70 20 74 |ou have |set up t|
|00001380| 68 65 73 65 20 72 65 73 | 6f 75 72 63 65 20 74 79 |hese res|ource ty|
|00001390| 70 65 73 20 70 72 6f 70 | 65 72 6c 79 20 62 75 74 |pes prop|erly but|
|000013a0| 20 74 68 65 20 69 63 6f | 6e 20 69 73 20 65 69 74 | the ico|n is eit|
|000013b0| 68 65 72 20 74 68 65 20 | 77 72 6f 6e 67 20 6f 6e |her the |wrong on|
|000013c0| 65 20 6f 72 20 69 74 20 | 68 61 73 20 64 65 66 61 |e or it |has defa|
|000013d0| 75 6c 74 65 64 20 74 6f | 20 74 68 65 20 73 74 61 |ulted to| the sta|
|000013e0| 6e 64 61 72 64 20 61 70 | 70 6c 69 63 61 74 69 6f |ndard ap|plicatio|
|000013f0| 6e 20 6f 72 20 64 61 74 | 61 20 66 69 6c 65 20 69 |n or dat|a file i|
|00001400| 63 6f 6e 2e 20 54 68 65 | 72 65 20 61 72 65 20 61 |con. The|re are a|
|00001410| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 6f 73 73 69 | number |of possi|
|00001420| 62 6c 65 20 72 65 61 73 | 6f 6e 73 20 66 6f 72 20 |ble reas|ons for |
|00001430| 74 68 69 73 2e 20 0d 49 | 66 20 79 6f 75 20 61 72 |this. .I|f you ar|
|00001440| 65 20 75 73 69 6e 67 20 | 74 68 65 20 4d 61 63 69 |e using |the Maci|
|00001450| 6e 74 6f 73 68 2d 62 61 | 73 65 64 20 52 4d 61 6b |ntosh-ba|sed RMak|
|00001460| 65 72 2c 20 74 68 65 20 | 66 69 72 73 74 20 74 68 |er, the |first th|
|00001470| 69 6e 67 20 74 6f 20 63 | 68 65 63 6b 20 69 73 20 |ing to c|heck is |
|00001480| 77 68 65 74 68 65 72 20 | 74 68 65 72 65 20 61 72 |whether |there ar|
|00001490| 65 20 61 6e 79 20 65 78 | 74 72 61 6e 65 6f 75 73 |e any ex|traneous|
|000014a0| 20 73 70 61 63 65 73 20 | 69 6e 20 79 6f 75 72 20 | spaces |in your |
|000014b0| 72 65 73 6f 75 72 63 65 | 20 63 6f 6d 70 69 6c 65 |resource| compile|
|000014c0| 72 20 69 6e 70 75 74 20 | 66 69 6c 65 2e 20 54 68 |r input |file. Th|
|000014d0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 2d 62 61 73 65 |e Macint|osh-base|
|000014e0| 64 20 52 4d 61 6b 65 72 | 20 69 73 20 76 65 72 79 |d RMaker| is very|
|000014f0| 20 70 69 63 6b 79 20 61 | 62 6f 75 74 20 65 78 74 | picky a|bout ext|
|00001500| 72 61 20 73 70 61 63 65 | 73 2e 0d 49 66 20 79 6f |ra space|s..If yo|
|00001510| 75 72 20 69 63 6f 6e 20 | 69 73 20 64 65 66 61 75 |ur icon |is defau|
|00001520| 6c 74 69 6e 67 20 74 6f | 20 74 68 65 20 73 74 61 |lting to| the sta|
|00001530| 6e 64 61 72 64 20 69 63 | 6f 6e 2c 20 63 68 65 63 |ndard ic|on, chec|
|00001540| 6b 20 74 6f 20 73 65 65 | 20 74 68 61 74 20 74 68 |k to see| that th|
|00001550| 65 20 62 75 6e 64 6c 65 | 20 62 69 74 20 69 73 20 |e bundle| bit is |
|00001560| 73 65 74 2e 20 49 66 20 | 74 68 65 20 62 75 6e 64 |set. If |the bund|
|00001570| 6c 65 20 62 69 74 20 69 | 73 6e d5 74 20 73 65 74 |le bit i|sn.t set|
|00001580| 20 2c 20 74 68 65 20 46 | 69 6e 64 65 72 20 64 6f | , the F|inder do|
|00001590| 65 73 6e d5 74 20 6b 6e | 6f 77 20 74 6f 20 70 6c |esn.t kn|ow to pl|
|000015a0| 61 63 65 20 74 68 65 20 | 62 75 6e 64 6c 65 20 69 |ace the |bundle i|
|000015b0| 6e 20 74 68 65 20 44 65 | 73 6b 74 6f 70 20 66 69 |n the De|sktop fi|
|000015c0| 6c 65 2e 20 49 66 20 69 | 74 20 69 73 6e d5 74 20 |le. If i|t isn.t |
|000015d0| 69 6e 20 74 68 65 20 44 | 65 73 6b 74 6f 70 20 66 |in the D|esktop f|
|000015e0| 69 6c 65 2c 20 74 68 65 | 20 46 69 6e 64 65 72 20 |ile, the| Finder |
|000015f0| 64 69 73 70 6c 61 79 73 | 20 74 68 65 20 66 69 6c |displays| the fil|
|00001600| 65 20 77 69 74 68 20 61 | 20 64 65 66 61 75 6c 74 |e with a| default|
|00001610| 20 69 63 6f 6e 2e 0d 49 | 66 20 79 6f 75 20 63 68 | icon..I|f you ch|
|00001620| 61 6e 67 65 64 20 74 68 | 65 20 69 63 6f 6e 20 61 |anged th|e icon a|
|00001630| 6e 64 20 72 65 6d 61 64 | 65 20 74 68 65 20 72 65 |nd remad|e the re|
|00001640| 73 6f 75 72 63 65 20 66 | 69 6c 65 2c 20 62 75 74 |source f|ile, but|
|00001650| 20 74 68 65 20 66 69 6c | 65 20 73 74 69 6c 6c 20 | the fil|e still |
|00001660| 68 61 73 20 74 68 65 20 | 73 61 6d 65 20 6f 6c 64 |has the |same old|
|00001670| 20 69 63 6f 6e 20 77 68 | 65 6e 20 64 69 73 70 6c | icon wh|en displ|
|00001680| 61 79 65 64 20 69 6e 20 | 74 68 65 20 46 69 6e 64 |ayed in |the Find|
|00001690| 65 72 2e 20 54 68 65 20 | 6f 6c 64 20 69 63 6f 6e |er. The |old icon|
|000016a0| 20 69 73 20 73 74 69 6c | 6c 20 69 6e 20 74 68 65 | is stil|l in the|
|000016b0| 20 44 65 73 6b 74 6f 70 | 20 66 69 6c 65 2e 20 54 | Desktop| file. T|
|000016c0| 68 65 20 46 69 6e 64 65 | 72 20 64 6f 65 73 6e d5 |he Finde|r doesn.|
|000016d0| 74 20 6b 6e 6f 77 20 74 | 68 61 74 20 79 6f 75 d5 |t know t|hat you.|
|000016e0| 76 65 20 63 68 61 6e 67 | 65 64 20 69 74 2c 20 73 |ve chang|ed it, s|
|000016f0| 6f 20 69 74 20 75 73 65 | 73 20 77 68 61 74 20 69 |o it use|s what i|
|00001700| 74 20 68 61 73 2e 20 54 | 6f 20 67 65 74 20 69 74 |t has. T|o get it|
|00001710| 20 74 6f 20 75 73 65 20 | 74 68 65 20 6e 65 77 20 | to use |the new |
|00001720| 69 63 6f 6e 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |icon you| need to|
|00001730| 20 72 65 62 75 69 6c 64 | 20 74 68 65 20 44 65 73 | rebuild| the Des|
|00001740| 6b 74 6f 70 20 66 69 6c | 65 2e 20 54 6f 20 66 6f |ktop fil|e. To fo|
|00001750| 72 63 65 20 74 68 65 20 | 46 69 6e 64 65 72 20 74 |rce the |Finder t|
|00001760| 6f 20 72 65 62 75 69 6c | 64 20 74 68 65 20 44 65 |o rebuil|d the De|
|00001770| 73 6b 74 6f 70 20 66 69 | 6c 65 2c 20 79 6f 75 20 |sktop fi|le, you |
|00001780| 63 61 6e 20 68 6f 6c 64 | 20 64 6f 77 6e 20 74 68 |can hold| down th|
|00001790| 65 20 4f 70 74 69 6f 6e | 20 61 6e 64 20 43 6f 6d |e Option| and Com|
|000017a0| 6d 61 6e 64 20 6b 65 79 | 73 20 6f 6e 20 73 74 61 |mand key|s on sta|
|000017b0| 72 74 75 70 20 6f 72 20 | 6f 6e 20 69 6e 73 65 72 |rtup or |on inser|
|000017c0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 64 69 73 6b |tion of |the disk|
|000017d0| 20 69 6e 20 71 75 65 73 | 74 69 6f 6e 20 69 66 20 | in ques|tion if |
|000017e0| 69 74 20 69 73 6e 27 74 | 20 74 68 65 20 62 6f 6f |it isn't| the boo|
|000017f0| 74 20 64 69 73 6b 2e 20 | 54 68 65 20 46 69 6e 64 |t disk. |The Find|
|00001800| 65 72 20 77 69 6c 6c 20 | 61 73 6b 20 77 68 65 74 |er will |ask whet|
|00001810| 68 65 72 20 6f 72 20 6e | 6f 74 20 79 6f 75 20 77 |her or n|ot you w|
|00001820| 61 6e 74 20 74 6f 20 72 | 65 62 75 69 6c 64 20 74 |ant to r|ebuild t|
|00001830| 68 65 20 64 65 73 6b 74 | 6f 70 20 28 6d 65 61 6e |he deskt|op (mean|
|00001840| 69 6e 67 20 74 68 65 20 | 44 65 73 6b 74 6f 70 20 |ing the |Desktop |
|00001850| 66 69 6c 65 29 2e 0d 48 | 61 76 65 20 61 20 62 75 |file)..H|ave a bu|
|00001860| 6e 64 6c 65 20 6f 66 20 | 66 75 6e 21 0d 46 75 72 |ndle of |fun!.Fur|
|00001870| 74 68 65 72 20 52 65 66 | 65 72 65 6e 63 65 3a 0d |ther Ref|erence:.|
|00001880| a5 09 54 68 65 20 46 69 | 6e 64 65 72 20 49 6e 74 |..The Fi|nder Int|
|00001890| 65 72 66 61 63 65 0d 43 | 61 6c 6c 69 6e 67 20 53 |erface.C|alling S|
|000018a0| 65 74 52 65 73 4c 6f 61 | 64 0d 54 6f 6f 6c 62 6f |etResLoa|d.Toolbo|
|000018b0| 78 09 4d 2e 54 42 2e 53 | 65 74 52 65 73 4c 6f 61 |x.M.TB.S|etResLoa|
|000018c0| 64 0d 52 65 76 69 73 65 | 64 20 62 79 3a 09 09 4d |d.Revise|d by:..M|
|000018d0| 61 72 63 68 20 31 39 38 | 38 0d 57 72 69 74 74 65 |arch 198|8.Writte|
|000018e0| 6e 20 62 79 3a 09 4a 69 | 6d 20 46 72 69 65 64 6c |n by:.Ji|m Friedl|
|000018f0| 61 6e 64 65 72 09 4f 63 | 74 6f 62 65 72 20 31 39 |ander.Oc|tober 19|
|00001900| 38 35 0d 43 61 6c 6c 69 | 6e 67 20 53 65 74 52 65 |85.Calli|ng SetRe|
|00001910| 73 4c 6f 61 64 28 46 41 | 4c 53 45 29 20 63 61 6e |sLoad(FA|LSE) can|
|00001920| 20 62 65 20 75 73 65 66 | 75 6c 20 69 66 20 79 6f | be usef|ul if yo|
|00001930| 75 20 6e 65 65 64 20 74 | 6f 20 67 65 74 20 61 20 |u need t|o get a |
|00001940| 68 61 6e 64 6c 65 20 74 | 6f 20 61 20 72 65 73 6f |handle t|o a reso|
|00001950| 75 72 63 65 2c 20 77 69 | 74 68 6f 75 74 20 63 61 |urce, wi|thout ca|
|00001960| 75 73 69 6e 67 20 74 68 | 65 20 72 65 73 6f 75 72 |using th|e resour|
|00001970| 63 65 20 74 6f 20 62 65 | 20 6c 6f 61 64 65 64 20 |ce to be| loaded |
|00001980| 66 72 6f 6d 20 64 69 73 | 6b 20 69 66 20 69 74 20 |from dis|k if it |
|00001990| 69 73 6e d5 74 20 61 6c | 72 65 61 64 79 20 69 6e |isn.t al|ready in|
|000019a0| 20 6d 65 6d 6f 72 79 2e | 20 53 65 74 52 65 73 4c | memory.| SetResL|
|000019b0| 6f 61 64 20 63 68 61 6e | 67 65 73 20 74 68 65 20 |oad chan|ges the |
|000019c0| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 6c 6f 77 |value of| the low|
|000019d0| 2d 6d 65 6d 6f 72 79 20 | 67 6c 6f 62 61 6c 20 52 |-memory |global R|
|000019e0| 65 73 4c 6f 61 64 20 28 | 61 74 20 6c 6f 63 61 74 |esLoad (|at locat|
|000019f0| 69 6f 6e 20 24 41 35 45 | 29 2e 0d 49 74 20 69 73 |ion $A5E|)..It is|
|00001a00| 20 76 65 72 79 20 69 6d | 70 6f 72 74 61 6e 74 20 | very im|portant |
|00001a10| 74 68 61 74 20 79 6f 75 | 72 20 70 72 6f 67 72 61 |that you|r progra|
|00001a20| 6d 20 6e 6f 74 20 6c 65 | 61 76 65 20 52 65 73 4c |m not le|ave ResL|
|00001a30| 6f 61 64 20 73 65 74 20 | 74 6f 20 46 41 4c 53 45 |oad set |to FALSE|
|00001a40| 20 77 68 65 6e 20 69 74 | 20 65 78 69 74 73 2e 20 | when it| exits. |
|00001a50| 44 6f 69 6e 67 20 74 68 | 69 73 20 77 69 6c 6c 20 |Doing th|is will |
|00001a60| 63 61 75 73 65 20 74 68 | 65 20 73 79 73 74 65 6d |cause th|e system|
|00001a70| 20 74 6f 20 72 65 62 6f | 6f 74 20 6f 72 20 63 72 | to rebo|ot or cr|
|00001a80| 61 73 68 20 77 68 65 6e | 20 69 74 20 64 6f 65 73 |ash when| it does|
|00001a90| 20 61 20 47 65 74 52 65 | 73 6f 75 72 63 65 20 63 | a GetRe|source c|
|00001aa0| 61 6c 6c 20 66 6f 72 20 | 74 68 65 20 6e 65 78 74 |all for |the next|
|00001ab0| 20 63 6f 64 65 20 73 65 | 67 6d 65 6e 74 20 74 6f | code se|gment to|
|00001ac0| 20 62 65 20 6c 6f 61 64 | 65 64 20 28 75 73 75 61 | be load|ed (usua|
|00001ad0| 6c 6c 79 20 74 68 65 20 | 46 69 6e 64 65 72 29 2e |lly the |Finder).|
|00001ae0| 20 54 68 65 20 73 79 73 | 74 65 6d 20 77 69 6c 6c | The sys|tem will|
|00001af0| 20 63 72 61 73 68 20 62 | 65 63 61 75 73 65 20 47 | crash b|ecause G|
|00001b00| 65 74 52 65 73 6f 75 72 | 63 65 20 77 69 6c 6c 20 |etResour|ce will |
|00001b10| 6e 6f 74 20 61 63 74 75 | 61 6c 6c 79 20 6c 6f 61 |not actu|ally loa|
|00001b20| 64 20 74 68 65 20 63 6f | 64 65 20 66 72 6f 6d 20 |d the co|de from |
|00001b30| 64 69 73 6b 20 77 68 65 | 6e 20 52 65 73 4c 6f 61 |disk whe|n ResLoa|
|00001b40| 64 20 69 73 20 46 41 4c | 53 45 2e 0d 53 6f 2c 20 |d is FAL|SE..So, |
|00001b50| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 61 74 20 79 |make sur|e that y|
|00001b60| 6f 75 20 63 61 6c 6c 20 | 53 65 74 52 65 73 4c 6f |ou call |SetResLo|
|00001b70| 61 64 28 54 52 55 45 29 | 20 62 65 66 6f 72 65 20 |ad(TRUE)| before |
|00001b80| 65 78 69 74 69 6e 67 20 | 79 6f 75 72 20 70 72 6f |exiting |your pro|
|00001b90| 67 72 61 6d 2e 20 0d 46 | 75 72 74 68 65 72 20 52 |gram. .F|urther R|
|00001ba0| 65 66 65 72 65 6e 63 65 | 3a 0d a5 09 54 68 65 20 |eference|:...The |
|00001bb0| 52 65 73 6f 75 72 63 65 | 20 4d 61 6e 61 67 65 72 |Resource| Manager|
|00001bc0| 0d 27 43 44 45 46 27 20 | 50 61 72 61 6d 65 74 65 |.'CDEF' |Paramete|
|00001bd0| 72 73 20 61 6e 64 20 42 | 75 67 73 0d 54 6f 6f 6c |rs and B|ugs.Tool|
|00001be0| 62 6f 78 09 4d 2e 54 42 | 2e 43 44 45 46 50 61 72 |box.M.TB|.CDEFPar|
|00001bf0| 61 6d 73 0d 52 65 76 69 | 73 65 64 20 62 79 3a 09 |ams.Revi|sed by:.|
|00001c00| 44 61 76 69 64 20 53 68 | 61 79 65 72 09 4f 63 74 |David Sh|ayer.Oct|
|00001c10| 6f 62 65 72 20 31 39 38 | 39 0d 57 72 69 74 74 65 |ober 198|9.Writte|
|00001c20| 6e 20 62 79 3a 09 4d 61 | 72 6b 20 42 65 6e 6e 65 |n by:.Ma|rk Benne|
|00001c30| 74 74 09 41 75 67 75 73 | 74 20 31 39 38 38 0d 54 |tt.Augus|t 1988.T|
|00001c40| 68 69 73 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |his Tech|nical No|
|00001c50| 74 65 20 64 65 73 63 72 | 69 62 65 73 20 6b 6e 6f |te descr|ibes kno|
|00001c60| 77 6e 20 62 75 67 73 20 | 69 6e 20 74 68 65 20 43 |wn bugs |in the C|
|00001c70| 6f 6e 74 72 6f 6c 20 4d | 61 6e 61 67 65 72 20 77 |ontrol M|anager w|
|00001c80| 68 69 63 68 20 61 66 66 | 65 63 74 20 63 6f 6e 74 |hich aff|ect cont|
|00001c90| 72 6f 6c 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 66 |rol defi|nition f|
|00001ca0| 75 6e 63 74 69 6f 6e 73 | 20 28 27 43 44 45 46 27 |unctions| ('CDEF'|
|00001cb0| 20 72 65 73 6f 75 72 63 | 65 73 29 2e 0d 43 68 61 | resourc|es)..Cha|
|00001cc0| 6e 67 65 73 20 73 69 6e | 63 65 20 41 75 67 75 73 |nges sin|ce Augus|
|00001cd0| 74 20 31 39 38 38 3a 20 | 20 55 70 64 61 74 65 64 |t 1988: | Updated|
|00001ce0| 20 74 6f 20 72 65 66 6c | 65 63 74 20 6b 6e 6f 77 | to refl|ect know|
|00001cf0| 6e 20 62 75 67 73 20 69 | 6e 20 74 68 65 20 70 6f |n bugs i|n the po|
|00001d00| 73 43 6e 74 6c 20 61 6e | 64 20 74 68 75 6d 62 43 |sCntl an|d thumbC|
|00001d10| 6e 74 6c 20 6d 65 73 73 | 61 67 65 73 20 61 6e 64 |ntl mess|ages and|
|00001d20| 20 74 68 65 20 43 6f 6e | 74 72 6f 6c 20 4d 61 6e | the Con|trol Man|
|00001d30| 61 67 65 72 20 5f 54 72 | 61 63 6b 43 6f 6e 74 72 |ager _Tr|ackContr|
|00001d40| 6f 6c 20 63 61 6c 6c 2e | 0d 54 68 65 20 43 6f 6e |ol call.|.The Con|
|00001d50| 74 72 6f 6c 20 4d 61 6e | 61 67 65 72 20 63 68 61 |trol Man|ager cha|
|00001d60| 70 74 65 72 20 6f 66 20 | 49 6e 73 69 64 65 20 4d |pter of |Inside M|
|00001d70| 61 63 69 6e 74 6f 73 68 | 2c 20 56 6f 6c 75 6d 65 |acintosh|, Volume|
|00001d80| 20 49 2d 33 30 39 2c 20 | 64 65 73 63 72 69 62 65 | I-309, |describe|
|00001d90| 73 20 68 6f 77 20 74 6f | 20 77 72 69 74 65 20 61 |s how to| write a|
|00001da0| 20 63 6f 6e 74 72 6f 6c | 20 64 65 66 69 6e 69 74 | control| definit|
|00001db0| 69 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 20 28 27 43 |ion func|tion ('C|
|00001dc0| 44 45 46 27 20 72 65 73 | 6f 75 72 63 65 29 2e 20 |DEF' res|ource). |
|00001dd0| 20 54 68 69 73 20 4e 6f | 74 65 20 61 73 73 75 6d | This No|te assum|
|00001de0| 65 73 20 61 20 62 61 73 | 69 63 20 75 6e 64 65 72 |es a bas|ic under|
|00001df0| 73 74 61 6e 64 69 6e 67 | 20 6f 66 20 74 68 69 73 |standing| of this|
|00001e00| 20 63 68 61 70 74 65 72 | 2c 20 73 70 65 63 69 66 | chapter|, specif|
|00001e10| 69 63 61 6c 6c 79 20 6f | 66 20 74 68 65 20 76 61 |ically o|f the va|
|00001e20| 72 69 6f 75 73 20 6d 65 | 73 73 61 67 65 73 20 77 |rious me|ssages w|
|00001e30| 68 69 63 68 20 61 72 65 | 20 73 65 6e 74 20 69 6e |hich are| sent in|
|00001e40| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 70 61 72 | the mes|sage par|
|00001e50| 61 6d 65 74 65 72 2e 0d | 64 72 61 77 43 6e 74 6c |ameter..|drawCntl|
|00001e60| 20 28 30 29 20 61 6e 64 | 20 61 75 74 6f 54 72 61 | (0) and| autoTra|
|00001e70| 63 6b 20 28 38 29 0d 57 | 68 65 6e 20 61 20 27 43 |ck (8).W|hen a 'C|
|00001e80| 44 45 46 27 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |DEF' is |called w|
|00001e90| 69 74 68 20 65 69 74 68 | 65 72 20 74 68 65 20 6d |ith eith|er the m|
|00001ea0| 65 73 73 61 67 65 20 64 | 72 61 77 43 6e 74 6c 20 |essage d|rawCntl |
|00001eb0| 6f 72 20 61 75 74 6f 54 | 72 61 63 6b 2c 20 69 74 |or autoT|rack, it|
|00001ec0| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 20 66 6f 72 | is poss|ible for|
|00001ed0| 20 74 68 65 20 68 69 67 | 68 20 77 6f 72 64 20 6f | the hig|h word o|
|00001ee0| 66 20 74 68 65 20 70 61 | 72 61 6d 20 70 61 72 61 |f the pa|ram para|
|00001ef0| 6d 65 74 65 72 20 74 6f | 20 63 6f 6e 74 61 69 6e |meter to| contain|
|00001f00| 20 75 6e 64 65 66 69 6e | 65 64 20 64 61 74 61 20 | undefin|ed data |
|00001f10| 77 68 69 63 68 20 63 6f | 75 6c 64 20 72 65 73 75 |which co|uld resu|
|00001f20| 6c 74 20 69 6e 20 74 68 | 65 20 66 61 69 6c 75 72 |lt in th|e failur|
|00001f30| 65 20 6f 66 20 72 6f 75 | 74 69 6e 65 73 20 74 68 |e of rou|tines th|
|00001f40| 61 74 20 72 65 6c 79 20 | 75 70 6f 6e 20 61 6c 6c |at rely |upon all|
|00001f50| 20 33 32 20 62 69 74 73 | 20 6f 66 20 70 61 72 61 | 32 bits| of para|
|00001f60| 6d 20 62 65 69 6e 67 20 | 64 65 66 69 6e 65 64 2e |m being |defined.|
|00001f70| 20 20 27 43 44 45 46 27 | 20 72 65 73 6f 75 72 63 | 'CDEF'| resourc|
|00001f80| 65 73 20 73 68 6f 75 6c | 64 20 6f 6e 6c 79 20 63 |es shoul|d only c|
|00001f90| 6f 6e 73 69 64 65 72 20 | 74 68 65 20 6c 6f 77 20 |onsider |the low |
|00001fa0| 77 6f 72 64 20 6f 66 20 | 74 68 65 20 70 61 72 61 |word of |the para|
|00001fb0| 6d 20 70 61 72 61 6d 65 | 74 65 72 20 77 68 65 6e |m parame|ter when|
|00001fc0| 20 64 65 61 6c 69 6e 67 | 20 77 69 74 68 20 74 68 | dealing| with th|
|00001fd0| 65 20 64 72 61 77 43 6e | 74 6c 20 61 6e 64 20 61 |e drawCn|tl and a|
|00001fe0| 75 74 6f 54 72 61 63 6b | 20 6d 65 73 73 61 67 65 |utoTrack| message|
|00001ff0| 73 2e 0d 70 6f 73 43 6e | 74 6c 20 28 35 29 20 61 |s..posCn|tl (5) a|
|00002000| 6e 64 20 74 68 75 6d 62 | 43 6e 74 6c 20 28 36 29 |nd thumb|Cntl (6)|
|00002010| 0d 41 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 49 6e |.Accordi|ng to In|
|00002020| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 2c 20 |side Mac|intosh, |
|00002030| 74 68 65 20 43 6f 6e 74 | 72 6f 6c 20 4d 61 6e 61 |the Cont|rol Mana|
|00002040| 67 65 72 20 63 61 6c 6c | 73 20 61 20 27 43 44 45 |ger call|s a 'CDE|
|00002050| 46 27 20 77 69 74 68 20 | 74 68 65 20 70 6f 73 43 |F' with |the posC|
|00002060| 6e 74 6c 20 6d 65 73 73 | 61 67 65 20 61 6e 64 20 |ntl mess|age and |
|00002070| 74 68 65 20 74 68 75 6d | 62 43 6e 74 6c 20 6d 65 |the thum|bCntl me|
|00002080| 73 73 61 67 65 20 69 66 | 20 61 6e 20 61 70 70 6c |ssage if| an appl|
|00002090| 69 63 61 74 69 6f 6e 20 | 64 6f 65 73 20 63 75 73 |ication |does cus|
|000020a0| 74 6f 6d 20 64 72 61 67 | 67 69 6e 67 20 6f 66 20 |tom drag|ging of |
|000020b0| 61 6e 20 69 6e 64 69 63 | 61 74 6f 72 20 28 61 20 |an indic|ator (a |
|000020c0| 74 68 75 6d 62 29 2c 20 | 62 75 74 20 6e 6f 74 20 |thumb), |but not |
|000020d0| 69 66 20 69 74 20 64 6f | 65 73 20 64 65 66 61 75 |if it do|es defau|
|000020e0| 6c 74 20 64 72 61 67 67 | 69 6e 67 2e 20 20 54 68 |lt dragg|ing. Th|
|000020f0| 69 73 20 69 73 20 6e 6f | 74 20 74 72 75 65 2e 20 |is is no|t true. |
|00002100| 20 54 68 65 20 43 6f 6e | 74 72 6f 6c 20 4d 61 6e | The Con|trol Man|
|00002110| 61 67 65 72 20 63 61 6c | 6c 73 20 61 20 27 43 44 |ager cal|ls a 'CD|
|00002120| 45 46 27 20 77 69 74 68 | 20 74 68 65 20 70 6f 73 |EF' with| the pos|
|00002130| 43 6e 74 6c 20 6d 65 73 | 73 61 67 65 20 69 66 20 |Cntl mes|sage if |
|00002140| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 64 |an appli|cation d|
|00002150| 6f 65 73 20 64 65 66 61 | 75 6c 74 20 64 72 61 67 |oes defa|ult drag|
|00002160| 67 69 6e 67 2c 20 77 68 | 69 63 68 20 69 73 20 65 |ging, wh|ich is e|
|00002170| 78 61 63 74 6c 79 20 74 | 68 65 20 6f 70 70 6f 73 |xactly t|he oppos|
|00002180| 69 74 65 20 6f 66 20 74 | 68 65 20 77 61 79 20 69 |ite of t|he way i|
|00002190| 74 20 69 73 20 64 6f 63 | 75 6d 65 6e 74 65 64 2e |t is doc|umented.|
|000021a0| 20 20 54 68 65 20 27 43 | 44 45 46 27 20 72 65 63 | The 'C|DEF' rec|
|000021b0| 65 69 76 65 73 20 74 68 | 65 20 74 68 75 6d 62 43 |eives th|e thumbC|
|000021c0| 6e 74 6c 20 6d 65 73 73 | 61 67 65 20 72 65 67 61 |ntl mess|age rega|
|000021d0| 72 64 6c 65 73 73 20 6f | 66 20 77 68 69 63 68 20 |rdless o|f which |
|000021e0| 74 79 70 65 20 6f 66 20 | 64 72 61 67 67 69 6e 67 |type of |dragging|
|000021f0| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00002200| 64 6f 65 73 2c 20 68 6f | 77 65 76 65 72 2c 20 74 |does, ho|wever, t|
|00002210| 68 65 20 72 65 73 75 6c | 74 73 20 61 72 65 20 75 |he resul|ts are u|
|00002220| 73 65 64 20 6f 6e 6c 79 | 20 66 6f 72 20 64 65 66 |sed only| for def|
|00002230| 61 75 6c 74 20 64 72 61 | 67 67 69 6e 67 20 28 74 |ault dra|gging (t|
|00002240| 68 65 79 20 61 72 65 20 | 69 67 6e 6f 72 65 64 20 |hey are |ignored |
|00002250| 66 6f 72 20 63 75 73 74 | 6f 6d 20 64 72 61 67 67 |for cust|om dragg|
|00002260| 69 6e 67 29 2e 0d 5f 54 | 72 61 63 6b 43 6f 6e 74 |ing).._T|rackCont|
|00002270| 72 6f 6c 0d 57 68 65 6e | 20 61 20 75 73 65 72 20 |rol.When| a user |
|00002280| 63 6c 69 63 6b 73 20 6f | 6e 20 79 6f 75 72 20 63 |clicks o|n your c|
|00002290| 6f 6e 74 72 6f 6c 2c 20 | 79 6f 75 20 6e 6f 72 6d |ontrol, |you norm|
|000022a0| 61 6c 6c 79 20 63 61 6c | 6c 20 5f 54 72 61 63 6b |ally cal|l _Track|
|000022b0| 43 6f 6e 74 72 6f 6c 2c | 20 77 68 69 63 68 20 69 |Control,| which i|
|000022c0| 73 20 73 75 70 70 6f 73 | 65 64 20 74 6f 20 72 65 |s suppos|ed to re|
|000022d0| 74 75 72 6e 20 7a 65 72 | 6f 20 69 66 20 74 68 65 |turn zer|o if the|
|000022e0| 20 75 73 65 72 20 64 6f | 65 73 20 6e 6f 74 20 63 | user do|es not c|
|000022f0| 68 61 6e 67 65 20 74 68 | 65 20 63 6f 6e 74 72 6f |hange th|e contro|
|00002300| 6c d5 73 20 73 65 74 74 | 69 6e 67 20 6f 72 20 74 |l.s sett|ing or t|
|00002310| 68 65 20 70 61 72 74 20 | 63 6f 64 65 20 69 66 20 |he part |code if |
|00002320| 74 68 65 20 75 73 65 72 | 20 64 6f 65 73 20 63 68 |the user| does ch|
|00002330| 61 6e 67 65 20 74 68 65 | 20 73 65 74 74 69 6e 67 |ange the| setting|
|00002340| 2e 20 20 46 6f 72 20 27 | 43 44 45 46 27 20 72 65 |. For '|CDEF' re|
|00002350| 73 6f 75 72 63 65 73 20 | 74 68 61 74 20 69 6d 70 |sources |that imp|
|00002360| 6c 65 6d 65 6e 74 20 63 | 75 73 74 6f 6d 20 64 72 |lement c|ustom dr|
|00002370| 61 67 67 69 6e 67 2c 20 | 5f 54 72 61 63 6b 43 6f |agging, |_TrackCo|
|00002380| 6e 74 72 6f 6c 20 72 65 | 74 75 72 6e 73 20 7a 65 |ntrol re|turns ze|
|00002390| 72 6f 20 77 68 65 74 68 | 65 72 20 6f 72 20 6e 6f |ro wheth|er or no|
|000023a0| 74 20 74 68 65 20 75 73 | 65 72 20 63 68 61 6e 67 |t the us|er chang|
|000023b0| 65 73 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c d5 73 |es the c|ontrol.s|
|000023c0| 20 73 65 74 74 69 6e 67 | 2e 20 20 54 6f 20 77 6f | setting|. To wo|
|000023d0| 72 6b 20 61 72 6f 75 6e | 64 20 74 68 69 73 20 70 |rk aroun|d this p|
|000023e0| 72 6f 62 6c 65 6d 2c 20 | 79 6f 75 20 6d 75 73 74 |roblem, |you must|
|000023f0| 20 75 73 65 20 61 6e 6f | 74 68 65 72 20 6d 65 74 | use ano|ther met|
|00002400| 68 6f 64 20 74 6f 20 66 | 69 6e 64 20 6f 75 74 20 |hod to f|ind out |
|00002410| 69 66 20 74 68 65 20 75 | 73 65 72 20 68 61 73 20 |if the u|ser has |
|00002420| 63 68 61 6e 67 65 64 20 | 74 68 65 20 63 6f 6e 74 |changed |the cont|
|00002430| 72 6f 6c d5 73 20 73 65 | 74 74 69 6e 67 2c 20 73 |rol.s se|tting, s|
|00002440| 75 63 68 20 61 73 20 63 | 6f 6d 70 61 72 69 6e 67 |uch as c|omparing|
|00002450| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c d5 73 20 76 | the con|trol.s v|
|00002460| 61 6c 75 65 20 62 65 66 | 6f 72 65 20 61 6e 64 20 |alue bef|ore and |
|00002470| 61 66 74 65 72 20 74 68 | 65 20 63 61 6c 6c 20 74 |after th|e call t|
|00002480| 6f 20 5f 54 72 61 63 6b | 43 6f 6e 74 72 6f 6c 2e |o _Track|Control.|
|00002490| 0d 46 75 72 74 68 65 72 | 20 52 65 66 65 72 65 6e |.Further| Referen|
|000024a0| 63 65 3a 0d a5 09 49 6e | 73 69 64 65 20 4d 61 63 |ce:...In|side Mac|
|000024b0| 69 6e 74 6f 73 68 2c 20 | 56 6f 6c 75 6d 65 20 49 |intosh, |Volume I|
|000024c0| 2d 33 30 39 2c 20 54 68 | 65 20 43 6f 6e 74 72 6f |-309, Th|e Contro|
|000024d0| 6c 20 4d 61 6e 61 67 65 | 72 0d 43 68 61 6e 67 65 |l Manage|r.Change|
|000024e0| 64 52 65 73 6f 75 72 63 | 65 3a 20 54 6f 6f 20 6d |dResourc|e: Too m|
|000024f0| 75 63 68 20 6f 66 20 61 | 20 67 6f 6f 64 20 74 68 |uch of a| good th|
|00002500| 69 6e 67 2e 0d 54 6f 6f | 6c 62 6f 78 09 4d 2e 54 |ing..Too|lbox.M.T|
|00002510| 42 2e 43 68 61 6e 67 65 | 64 52 65 73 6f 75 72 63 |B.Change|dResourc|
|00002520| 65 0d 57 72 69 74 74 65 | 6e 20 62 79 3a 09 44 61 |e.Writte|n by:.Da|
|00002530| 76 65 20 42 75 72 6e 61 | 72 64 09 41 70 72 69 6c |ve Burna|rd.April|
|00002540| 20 31 39 38 38 0d 54 68 | 65 20 74 6f 6f 6c 62 6f | 1988.Th|e toolbo|
|00002550| 78 20 74 72 61 70 20 43 | 68 61 6e 67 65 64 52 65 |x trap C|hangedRe|
|00002560| 73 6f 75 72 63 65 20 69 | 73 20 75 73 65 64 20 74 |source i|s used t|
|00002570| 6f 20 69 6e 66 6f 72 6d | 20 74 68 65 20 52 65 73 |o inform| the Res|
|00002580| 6f 75 72 63 65 20 4d 61 | 6e 61 67 65 72 20 74 68 |ource Ma|nager th|
|00002590| 61 74 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |at the c|ontents |
|000025a0| 6f 66 20 61 20 72 65 73 | 6f 75 72 63 65 20 68 61 |of a res|ource ha|
|000025b0| 76 65 20 63 68 61 6e 67 | 65 64 20 61 6e 64 20 73 |ve chang|ed and s|
|000025c0| 68 6f 75 6c 64 20 62 65 | 20 77 72 69 74 74 65 6e |hould be| written|
|000025d0| 20 74 6f 20 64 69 73 6b | 2e 20 54 68 65 20 61 63 | to disk|. The ac|
|000025e0| 74 75 61 6c 20 77 72 69 | 74 65 20 6f 63 63 75 72 |tual wri|te occur|
|000025f0| 73 20 6f 6e 20 74 68 65 | 20 6e 65 78 74 20 63 61 |s on the| next ca|
|00002600| 6c 6c 20 74 6f 20 57 72 | 69 74 65 52 65 73 6f 75 |ll to Wr|iteResou|
|00002610| 72 63 65 20 28 66 6f 72 | 20 74 68 65 20 73 70 65 |rce (for| the spe|
|00002620| 63 69 66 69 63 20 72 65 | 73 6f 75 72 63 65 29 20 |cific re|source) |
|00002630| 6f 72 20 55 70 64 61 74 | 65 52 65 73 46 69 6c 65 |or Updat|eResFile|
|00002640| 20 28 66 6f 72 20 74 68 | 65 20 72 65 73 6f 75 72 | (for th|e resour|
|00002650| 63 65 20 66 69 6c 65 20 | 63 6f 6e 74 61 69 6e 69 |ce file |containi|
|00002660| 6e 67 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |ng the s|pecified|
|00002670| 20 72 65 73 6f 75 72 63 | 65 29 2e 20 57 68 65 6e | resourc|e). When|
|00002680| 20 63 61 6c 6c 65 64 2c | 20 43 68 61 6e 67 65 64 | called,| Changed|
|00002690| 52 65 73 6f 75 72 63 65 | 20 72 65 73 65 72 76 65 |Resource| reserve|
|000026a0| 73 20 65 6e 6f 75 67 68 | 20 64 69 73 6b 20 73 70 |s enough| disk sp|
|000026b0| 61 63 65 20 74 6f 20 63 | 6f 6e 74 61 69 6e 20 74 |ace to c|ontain t|
|000026c0| 68 65 20 63 68 61 6e 67 | 65 64 20 72 65 73 6f 75 |he chang|ed resou|
|000026d0| 72 63 65 2e 20 41 20 6c | 69 74 74 6c 65 2d 6b 6e |rce. A l|ittle-kn|
|000026e0| 6f 77 6e 20 d2 66 65 61 | 74 75 72 65 d3 20 6f 66 |own .fea|ture. of|
|000026f0| 20 43 68 61 6e 67 65 64 | 52 65 73 6f 75 72 63 65 | Changed|Resource|
|00002700| 20 69 73 20 74 68 61 74 | 20 69 74 20 72 65 73 65 | is that| it rese|
|00002710| 72 76 65 73 20 64 69 73 | 6b 20 73 70 61 63 65 20 |rves dis|k space |
|00002720| 65 76 65 72 79 20 74 69 | 6d 65 20 69 74 20 69 73 |every ti|me it is|
|00002730| 20 63 61 6c 6c 65 64 2e | 20 54 68 75 73 20 69 66 | called.| Thus if|
|00002740| 20 79 6f 75 20 63 61 6c | 6c 20 43 68 61 6e 67 65 | you cal|l Change|
|00002750| 64 52 65 73 6f 75 72 63 | 65 20 74 65 6e 20 74 69 |dResourc|e ten ti|
|00002760| 6d 65 73 20 6f 6e 20 61 | 20 6c 61 72 67 65 20 72 |mes on a| large r|
|00002770| 65 73 6f 75 72 63 65 20 | 62 65 66 6f 72 65 20 74 |esource |before t|
|00002780| 68 65 20 72 65 73 6f 75 | 72 63 65 20 69 73 20 61 |he resou|rce is a|
|00002790| 63 74 75 61 6c 6c 79 20 | 77 72 69 74 74 65 6e 20 |ctually |written |
|000027a0| 6f 75 74 2c 20 79 6f 75 | 20 6d 61 79 20 75 6e 65 |out, you| may une|
|000027b0| 78 70 65 63 74 65 64 6c | 79 20 72 75 6e 20 6f 75 |xpectedl|y run ou|
|000027c0| 74 20 6f 66 20 64 69 73 | 6b 20 73 70 61 63 65 20 |t of dis|k space |
|000027d0| 73 69 6e 63 65 20 74 65 | 6e 20 74 69 6d 65 73 20 |since te|n times |
|000027e0| 74 68 65 20 61 6d 6f 75 | 6e 74 20 6f 66 20 64 69 |the amou|nt of di|
|000027f0| 73 6b 20 73 70 61 63 65 | 20 61 63 74 75 61 6c 6c |sk space| actuall|
|00002800| 79 20 6e 65 65 64 65 64 | 20 77 69 6c 6c 20 62 65 |y needed| will be|
|00002810| 20 72 65 73 65 72 76 65 | 64 2e 20 0d 49 66 20 79 | reserve|d. .If y|
|00002820| 6f 75 72 20 70 72 6f 67 | 72 61 6d 20 66 72 65 71 |our prog|ram freq|
|00002830| 75 65 6e 74 6c 79 20 63 | 68 61 6e 67 65 73 20 74 |uently c|hanges t|
|00002840| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 72 |he conte|nts of r|
|00002850| 65 73 6f 75 72 63 65 73 | 2c 20 65 73 70 65 63 69 |esources|, especi|
|00002860| 61 6c 6c 79 20 6c 61 72 | 67 65 20 6f 6e 65 73 2c |ally lar|ge ones,|
|00002870| 20 74 68 65 6e 20 79 6f | 75 20 73 68 6f 75 6c 64 | then yo|u should|
|00002880| 20 63 61 6c 6c 20 57 72 | 69 74 65 52 65 73 6f 75 | call Wr|iteResou|
|00002890| 72 63 65 20 6f 72 20 55 | 70 64 61 74 65 52 65 73 |rce or U|pdateRes|
|000028a0| 46 69 6c 65 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |File imm|ediately|
|000028b0| 20 61 66 74 65 72 20 63 | 61 6c 6c 69 6e 67 20 43 | after c|alling C|
|000028c0| 68 61 6e 67 65 64 52 65 | 73 6f 75 72 63 65 2e 20 |hangedRe|source. |
|000028d0| 4f 6e 63 65 20 74 68 65 | 20 72 65 73 6f 75 72 63 |Once the| resourc|
|000028e0| 65 20 69 73 20 61 63 74 | 75 61 6c 6c 79 20 77 72 |e is act|ually wr|
|000028f0| 69 74 74 65 6e 2c 20 74 | 68 65 20 66 69 6c 65 d5 |itten, t|he file.|
|00002900| 73 20 45 4f 46 20 77 69 | 6c 6c 20 62 65 20 73 65 |s EOF wi|ll be se|
|00002910| 74 20 63 6f 72 72 65 63 | 74 6c 79 2c 20 61 6e 64 |t correc|tly, and|
|00002920| 20 74 68 65 20 66 69 72 | 73 74 20 73 75 62 73 65 | the fir|st subse|
|00002930| 71 75 65 6e 74 20 63 61 | 6c 6c 20 74 6f 20 43 68 |quent ca|ll to Ch|
|00002940| 61 6e 67 65 64 52 65 73 | 6f 75 72 63 65 20 77 69 |angedRes|ource wi|
|00002950| 6c 6c 20 77 6f 72 6b 20 | 63 6f 72 72 65 63 74 6c |ll work |correctl|
|00002960| 79 2e 0d 46 75 72 74 68 | 65 72 20 52 65 66 65 72 |y..Furth|er Refer|
|00002970| 65 6e 63 65 3a 0d a5 09 | 54 68 65 20 52 65 73 6f |ence:...|The Reso|
|00002980| 75 72 63 65 20 4d 61 6e | 61 67 65 72 0d 48 6f 77 |urce Man|ager.How|
|00002990| 20 54 6f 20 50 72 6f 64 | 75 63 65 20 43 6f 6e 74 | To Prod|uce Cont|
|000029a0| 69 6e 75 6f 75 73 20 53 | 6f 75 6e 64 20 57 69 74 |inuous S|ound Wit|
|000029b0| 68 6f 75 74 20 43 6c 69 | 63 6b 69 6e 67 0d 54 6f |hout Cli|cking.To|
|000029c0| 6f 6c 62 6f 78 09 4d 2e | 54 42 2e 43 6c 69 63 6b |olbox.M.|TB.Click|
|000029d0| 6c 65 73 73 53 6f 75 6e | 64 0d 52 65 76 69 73 65 |lessSoun|d.Revise|
|000029e0| 64 20 62 79 3a 09 4a 69 | 6d 20 52 65 65 6b 65 73 |d by:.Ji|m Reekes|
|000029f0| 09 4a 75 6e 65 20 31 39 | 38 39 0d 57 72 69 74 74 |.June 19|89.Writt|
|00002a00| 65 6e 20 62 79 3a 09 47 | 69 6e 67 65 72 20 4a 65 |en by:.G|inger Je|
|00002a10| 72 6e 69 67 61 6e 09 41 | 70 72 69 6c 20 31 39 38 |rnigan.A|pril 198|
|00002a20| 35 0d 54 68 69 73 20 54 | 65 63 68 6e 69 63 61 6c |5.This T|echnical|
|00002a30| 20 4e 6f 74 65 20 66 6f | 72 6d 65 72 6c 79 20 64 | Note fo|rmerly d|
|00002a40| 65 73 63 72 69 62 65 64 | 20 68 6f 77 20 74 6f 20 |escribed| how to |
|00002a50| 75 73 65 20 74 68 65 20 | 53 6f 75 6e 64 20 44 72 |use the |Sound Dr|
|00002a60| 69 76 65 72 20 74 6f 20 | 70 72 6f 64 75 63 65 20 |iver to |produce |
|00002a70| 63 6f 6e 74 69 6e 75 6f | 75 73 20 73 6f 75 6e 64 |continuo|us sound|
|00002a80| 20 77 69 74 68 6f 75 74 | 20 63 6c 69 63 6b 69 6e | without| clickin|
|00002a90| 67 2e 0d 43 68 61 6e 67 | 65 73 20 73 69 6e 63 65 |g..Chang|es since|
|00002aa0| 20 4d 61 72 63 68 20 31 | 39 38 38 3a 20 20 54 68 | March 1|988: Th|
|00002ab0| 65 20 63 6f 6e 74 69 6e | 75 6f 75 73 20 73 6f 75 |e contin|uous sou|
|00002ac0| 6e 64 20 74 65 63 68 6e | 69 71 75 65 20 69 73 20 |nd techn|ique is |
|00002ad0| 6e 6f 20 6c 6f 6e 67 65 | 72 20 72 65 63 6f 6d 6d |no longe|r recomm|
|00002ae0| 65 6e 64 65 64 2e 0d 41 | 70 70 6c 65 20 63 75 72 |ended..A|pple cur|
|00002af0| 72 65 6e 74 6c 79 20 64 | 69 73 63 6f 75 72 61 67 |rently d|iscourag|
|00002b00| 65 73 20 75 73 65 20 6f | 66 20 74 68 65 20 53 6f |es use o|f the So|
|00002b10| 75 6e 64 20 44 72 69 76 | 65 72 20 64 75 65 20 74 |und Driv|er due t|
|00002b20| 6f 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |o compat|ibility |
|00002b30| 69 73 73 75 65 73 2e 20 | 20 54 68 65 20 68 61 72 |issues. | The har|
|00002b40| 64 77 61 72 65 20 73 75 | 70 70 6f 72 74 20 66 6f |dware su|pport fo|
|00002b50| 72 20 73 6f 75 6e 64 20 | 64 65 73 69 67 6e 65 64 |r sound |designed|
|00002b60| 20 69 6e 74 6f 20 74 68 | 65 20 65 61 72 6c 79 20 | into th|e early |
|00002b70| 4d 61 63 69 6e 74 6f 73 | 68 20 61 72 63 68 69 74 |Macintos|h archit|
|00002b80| 65 63 74 75 72 65 20 77 | 61 73 20 6d 69 6e 69 6d |ecture w|as minim|
|00002b90| 61 6c 2e 20 20 28 4d 61 | 6e 79 20 74 68 69 6e 67 |al. (Ma|ny thing|
|00002ba0| 73 20 68 61 76 65 20 63 | 68 61 6e 67 65 64 20 73 |s have c|hanged s|
|00002bb0| 69 6e 63 65 20 31 39 38 | 33 d0 31 39 38 34 2e 29 |ince 198|3.1984.)|
|00002bc0| 20 20 54 68 65 20 6e 65 | 77 20 4d 61 63 69 6e 74 | The ne|w Macint|
|00002bd0| 6f 73 68 20 63 6f 6d 70 | 75 74 65 72 73 20 63 6f |osh comp|uters co|
|00002be0| 6e 74 61 69 6e 20 61 20 | 63 75 73 74 6f 6d 20 63 |ntain a |custom c|
|00002bf0| 68 69 70 20 74 6f 20 70 | 72 6f 76 69 64 65 20 62 |hip to p|rovide b|
|00002c00| 65 74 74 65 72 20 73 75 | 70 70 6f 72 74 20 66 6f |etter su|pport fo|
|00002c10| 72 20 73 6f 75 6e 64 2c | 20 6e 61 6d 65 6c 79 20 |r sound,| namely |
|00002c20| 74 68 65 20 41 70 70 6c | 65 20 53 6f 75 6e 64 20 |the Appl|e Sound |
|00002c30| 43 68 69 70 20 28 41 53 | 43 29 2e 20 20 54 68 65 |Chip (AS|C). The|
|00002c40| 20 41 53 43 20 69 73 20 | 70 72 65 73 65 6e 74 20 | ASC is |present |
|00002c50| 69 6e 20 74 68 65 20 63 | 6f 6d 70 6c 65 74 65 20 |in the c|omplete |
|00002c60| 4d 61 63 69 6e 74 6f 73 | 68 20 49 49 20 66 61 6d |Macintos|h II fam|
|00002c70| 69 6c 79 20 61 73 20 77 | 65 6c 6c 20 61 73 20 74 |ily as w|ell as t|
|00002c80| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 53 45 2f |he Macin|tosh SE/|
|00002c90| 33 30 20 61 6e 64 20 6c | 61 74 65 72 20 6d 61 63 |30 and l|ater mac|
|00002ca0| 68 69 6e 65 73 2e 20 20 | 57 68 65 6e 20 74 68 65 |hines. |When the|
|00002cb0| 20 6f 6c 64 65 72 20 68 | 61 72 64 77 61 72 65 20 | older h|ardware |
|00002cc0| 6f 66 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |of the M|acintosh|
|00002cd0| 20 50 6c 75 73 20 61 6e | 64 20 53 45 20 61 72 65 | Plus an|d SE are|
|00002ce0| 20 61 63 63 65 73 73 65 | 64 2c 20 69 74 20 69 73 | accesse|d, it is|
|00002cf0| 20 6c 69 6b 65 6c 79 20 | 74 6f 20 63 61 75 73 65 | likely |to cause|
|00002d00| 20 61 20 63 6c 69 63 6b | 2e 20 20 54 68 69 73 20 | a click|. This |
|00002d10| 63 6c 69 63 6b 20 69 73 | 20 61 20 68 61 72 64 77 |click is| a hardw|
|00002d20| 61 72 65 20 70 72 6f 62 | 6c 65 6d 2e 20 20 54 68 |are prob|lem. Th|
|00002d30| 65 20 73 6f 66 74 77 61 | 72 65 20 73 6f 6c 75 74 |e softwa|re solut|
|00002d40| 69 6f 6e 20 74 6f 20 74 | 68 69 73 20 70 72 6f 62 |ion to t|his prob|
|00002d50| 6c 65 6d 20 77 61 73 20 | 74 6f 20 63 6f 6e 74 69 |lem was |to conti|
|00002d60| 6e 75 6f 75 73 6c 79 20 | 70 6c 61 79 20 73 69 6c |nuously |play sil|
|00002d70| 65 6e 63 65 2e 20 20 54 | 68 69 73 20 69 73 20 6e |ence. T|his is n|
|00002d80| 6f 74 20 61 20 72 65 61 | 6c 20 73 6f 6c 75 74 69 |ot a rea|l soluti|
|00002d90| 6f 6e 20 74 6f 20 74 68 | 65 20 70 72 6f 62 6c 65 |on to th|e proble|
|00002da0| 6d 20 61 6e 64 20 69 73 | 20 6e 6f 74 20 61 64 76 |m and is| not adv|
|00002db0| 69 73 61 62 6c 65 20 66 | 6f 72 20 74 68 65 20 66 |isable f|or the f|
|00002dc0| 6f 6c 6c 6f 77 69 6e 67 | 20 72 65 61 73 6f 6e 73 |ollowing| reasons|
|00002dd0| 3a 0d a5 09 54 68 65 20 | 53 6f 75 6e 64 20 44 72 |:...The |Sound Dr|
|00002de0| 69 76 65 72 20 69 73 20 | 6e 6f 20 6c 6f 6e 67 65 |iver is |no longe|
|00002df0| 72 20 73 75 70 70 6f 72 | 74 65 64 2e 20 20 54 68 |r suppor|ted. Th|
|00002e00| 65 72 65 20 68 61 76 65 | 20 61 6c 77 61 79 73 20 |ere have| always |
|00002e10| 62 65 65 6e 2c 20 61 6e | 64 20 73 74 69 6c 6c 20 |been, an|d still |
|00002e20| 61 72 65 2c 20 62 75 67 | 73 20 69 6e 20 74 68 65 |are, bug|s in the|
|00002e30| 20 67 6c 75 65 20 63 6f | 64 65 20 66 6f 72 20 53 | glue co|de for S|
|00002e40| 74 61 72 74 53 6f 75 6e | 64 2e 0d a5 09 54 68 65 |tartSoun|d....The|
|00002e50| 20 53 6f 75 6e 64 20 44 | 72 69 76 65 72 20 6d 61 | Sound D|river ma|
|00002e60| 79 20 6e 6f 74 20 62 65 | 20 70 72 65 73 65 6e 74 |y not be| present|
|00002e70| 20 69 6e 20 66 75 74 75 | 72 65 20 53 79 73 74 65 | in futu|re Syste|
|00002e80| 6d 20 53 6f 66 74 77 61 | 72 65 20 72 65 6c 65 61 |m Softwa|re relea|
|00002e90| 73 65 73 2c 20 6f 72 20 | 66 75 74 75 72 65 20 68 |ses, or |future h|
|00002ea0| 61 72 64 77 61 72 65 20 | 6d 61 79 20 6e 6f 74 20 |ardware |may not |
|00002eb0| 62 65 20 61 62 6c 65 20 | 74 6f 20 73 75 70 70 6f |be able |to suppo|
|00002ec0| 72 74 20 69 74 2e 20 20 | 54 68 65 20 53 6f 75 6e |rt it. |The Soun|
|00002ed0| 64 20 4d 61 6e 61 67 65 | 72 20 69 73 20 74 68 65 |d Manage|r is the|
|00002ee0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 69 | applica|tion.s i|
|00002ef0| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 74 68 65 20 |nterface| to the |
|00002f00| 73 6f 75 6e 64 20 68 61 | 72 64 77 61 72 65 2e 0d |sound ha|rdware..|
|00002f10| a5 09 54 68 65 20 74 65 | 63 68 6e 69 71 75 65 20 |..The te|chnique |
|00002f20| 75 73 65 64 20 74 6f 20 | 63 72 65 61 74 65 20 61 |used to |create a|
|00002f30| 20 63 6f 6e 74 69 6e 75 | 6f 75 73 20 73 6f 75 6e | continu|ous soun|
|00002f40| 64 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 6f 6e |d should| have on|
|00002f50| 6c 79 20 62 65 65 6e 20 | 75 73 65 64 20 6f 6e 20 |ly been |used on |
|00002f60| 61 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6c 75 73 |a Macint|osh Plus|
|00002f70| 20 6f 72 20 53 45 2c 20 | 73 69 6e 63 65 20 74 68 | or SE, |since th|
|00002f80| 65 73 65 20 61 72 65 20 | 74 68 65 20 6f 6e 6c 79 |ese are |the only|
|00002f90| 20 6d 6f 64 65 6c 73 20 | 74 68 61 74 20 68 61 76 | models |that hav|
|00002fa0| 65 20 74 68 65 20 d2 65 | 6d 62 61 72 72 61 73 73 |e the .e|mbarrass|
|00002fb0| 69 6e 67 20 63 6c 69 63 | 6b 2e d3 20 20 44 6f 20 |ing clic|k.. Do |
|00002fc0| 6e 6f 74 20 75 73 65 20 | 74 68 69 73 20 6d 65 74 |not use |this met|
|00002fd0| 68 6f 64 20 6f 6e 20 61 | 20 4d 61 63 69 6e 74 6f |hod on a| Macinto|
|00002fe0| 73 68 20 77 68 69 63 68 | 20 68 61 73 20 74 68 65 |sh which| has the|
|00002ff0| 20 41 70 70 6c 65 20 53 | 6f 75 6e 64 20 43 68 69 | Apple S|ound Chi|
|00003000| 70 2e 0d a5 09 55 73 69 | 6e 67 20 74 68 65 20 63 |p....Usi|ng the c|
|00003010| 6f 6e 74 69 6e 75 6f 75 | 73 20 73 6f 75 6e 64 20 |ontinuou|s sound |
|00003020| 74 65 63 68 6e 69 71 75 | 65 2c 20 6f 72 20 74 68 |techniqu|e, or th|
|00003030| 65 20 53 6f 75 6e 64 20 | 44 72 69 76 65 72 20 66 |e Sound |Driver f|
|00003040| 6f 72 20 74 68 61 74 20 | 6d 61 74 74 65 72 2c 20 |or that |matter, |
|00003050| 77 69 6c 6c 20 63 61 75 | 73 65 20 70 72 6f 62 6c |will cau|se probl|
|00003060| 65 6d 73 20 66 6f 72 20 | 74 68 65 20 73 79 73 74 |ems for |the syst|
|00003070| 65 6d 20 61 6e 64 20 74 | 68 6f 73 65 20 61 70 70 |em and t|hose app|
|00003080| 6c 69 63 61 74 69 6f 6e | 73 20 74 68 61 74 20 70 |lication|s that p|
|00003090| 72 6f 70 65 72 6c 79 20 | 75 73 65 20 74 68 65 20 |roperly |use the |
|000030a0| 53 6f 75 6e 64 20 4d 61 | 6e 61 67 65 72 2e 20 20 |Sound Ma|nager. |
|000030b0| 41 6c 73 6f 20 72 65 61 | 6c 69 7a 65 20 74 68 61 |Also rea|lize tha|
|000030c0| 74 20 5f 53 79 73 42 65 | 65 70 2c 20 77 68 69 63 |t _SysBe|ep, whic|
|000030d0| 68 20 69 73 20 61 20 63 | 6f 6d 6d 6f 6e 20 72 6f |h is a c|ommon ro|
|000030e0| 75 74 69 6e 65 20 74 68 | 61 74 20 65 76 65 72 79 |utine th|at every|
|000030f0| 74 68 69 6e 67 20 75 73 | 65 73 2c 20 69 73 20 61 |thing us|es, is a|
|00003100| 20 53 6f 75 6e 64 20 4d | 61 6e 61 67 65 72 20 72 | Sound M|anager r|
|00003110| 6f 75 74 69 6e 65 2e 0d | a5 09 54 68 65 20 63 6f |outine..|..The co|
|00003120| 6e 74 69 6e 75 6f 75 73 | 20 73 6f 75 6e 64 20 74 |ntinuous| sound t|
|00003130| 65 63 68 6e 69 71 75 65 | 20 77 61 73 74 65 73 20 |echnique| wastes |
|00003140| 43 50 55 20 74 69 6d 65 | 20 62 79 20 70 6c 61 79 |CPU time| by play|
|00003150| 69 6e 67 20 73 69 6c 65 | 6e 63 65 2e 20 20 57 69 |ing sile|nce. Wi|
|00003160| 74 68 20 6d 75 6c 74 69 | 6d 65 64 69 61 20 61 70 |th multi|media ap|
|00003170| 70 6c 69 63 61 74 69 6f | 6e 73 20 61 6e 64 20 74 |plicatio|ns and t|
|00003180| 68 65 20 61 64 76 65 6e | 74 20 6f 66 20 4d 75 6c |he adven|t of Mul|
|00003190| 74 69 46 69 6e 64 65 72 | 2c 20 69 74 20 69 73 20 |tiFinder|, it is |
|000031a0| 69 6d 70 6f 72 74 61 6e | 74 20 74 6f 20 61 6c 6c |importan|t to all|
|000031b0| 6f 77 20 74 68 65 20 43 | 50 55 20 74 6f 20 64 6f |ow the C|PU to do|
|000031c0| 20 61 73 20 6d 75 63 68 | 20 77 6f 72 6b 20 61 73 | as much| work as|
|000031d0| 20 70 6f 73 73 69 62 6c | 65 2e 20 20 54 68 65 20 | possibl|e. The |
|000031e0| 63 6f 6e 74 69 6e 75 6f | 75 73 20 73 6f 75 6e 64 |continuo|us sound|
|000031f0| 20 74 65 63 68 6e 69 71 | 75 65 20 75 73 65 64 20 | techniq|ue used |
|00003200| 74 68 65 20 43 50 55 20 | 74 6f 20 63 6f 6e 74 69 |the CPU |to conti|
|00003210| 6e 75 6f 75 73 6c 79 20 | 70 6c 61 79 20 73 69 6c |nuously |play sil|
|00003220| 65 6e 63 65 2c 20 74 68 | 75 73 20 73 74 65 61 6c |ence, th|us steal|
|00003230| 69 6e 67 20 76 61 6c 75 | 61 62 6c 65 20 74 69 6d |ing valu|able tim|
|00003240| 65 20 66 72 6f 6d 20 6f | 74 68 65 72 2c 20 6d 6f |e from o|ther, mo|
|00003250| 72 65 20 69 6d 70 6f 72 | 74 61 6e 74 2c 20 6a 6f |re impor|tant, jo|
|00003260| 62 73 2e 0d 46 75 72 74 | 68 65 72 20 52 65 66 65 |bs..Furt|her Refe|
|00003270| 72 65 6e 63 65 3a 0d a5 | 09 54 68 65 20 53 6f 75 |rence:..|.The Sou|
|00003280| 6e 64 20 4d 61 6e 61 67 | 65 72 2c 20 49 6e 74 65 |nd Manag|er, Inte|
|00003290| 72 69 6d 20 43 68 61 70 | 74 65 72 20 62 79 20 4a |rim Chap|ter by J|
|000032a0| 69 6d 20 52 65 65 6b 65 | 73 2c 20 4f 63 74 6f 62 |im Reeke|s, Octob|
|000032b0| 65 72 20 32 2c 20 31 39 | 38 38 0d a5 09 4d 2e 54 |er 2, 19|88...M.T|
|000032c0| 42 2e 4d 75 6c 74 69 66 | 69 6e 64 65 72 4d 69 73 |B.Multif|inderMis|
|000032d0| 63 0d 43 6f 6c 6f 72 2c | 20 57 69 6e 64 6f 77 73 |c.Color,| Windows|
|000032e0| 20 61 6e 64 20 37 2e 30 | 0d 54 6f 6f 6c 62 6f 78 | and 7.0|.Toolbox|
|000032f0| 09 4d 2e 54 42 2e 43 6f | 6c 6f 72 57 69 6e 64 6f |.M.TB.Co|lorWindo|
|00003300| 77 73 49 6e 37 0d 52 65 | 76 69 73 65 64 20 62 79 |wsIn7.Re|vised by|
|00003310| 3a 20 09 47 75 69 6c 6c | 65 72 6d 6f 20 41 2e 20 |: .Guill|ermo A. |
|00003320| 4f 72 74 69 7a 09 4f 63 | 74 6f 62 65 72 20 31 39 |Ortiz.Oc|tober 19|
|00003330| 39 32 0d 57 72 69 74 74 | 65 6e 20 62 79 3a 09 47 |92.Writt|en by:.G|
|00003340| 75 69 6c 6c 65 72 6d 6f | 20 41 2e 20 4f 72 74 69 |uillermo| A. Orti|
|00003350| 7a 09 4a 61 6e 75 61 72 | 79 20 31 39 39 31 0d 53 |z.Januar|y 1991.S|
|00003360| 79 73 74 65 6d 20 73 6f | 66 74 77 61 72 65 20 76 |ystem so|ftware v|
|00003370| 65 72 73 69 6f 6e 20 37 | 2e 30 20 69 6e 74 72 6f |ersion 7|.0 intro|
|00003380| 64 75 63 65 73 20 61 20 | 6e 65 77 20 6c 6f 6f 6b |duces a |new look|
|00003390| 20 66 6f 72 20 74 68 65 | 20 4d 61 63 69 6e 74 6f | for the| Macinto|
|000033a0| 73 68 20 64 65 73 6b 74 | 6f 70 2e 20 49 6e 20 6f |sh deskt|op. In o|
|000033b0| 72 64 65 72 20 74 6f 20 | 69 6d 70 6c 65 6d 65 6e |rder to |implemen|
|000033c0| 74 20 74 68 6f 73 65 20 | 63 68 61 6e 67 65 73 2c |t those |changes,|
|000033d0| 20 27 77 63 74 62 27 20 | 61 6e 64 20 27 63 63 74 | 'wctb' |and 'cct|
|000033e0| 62 27 20 72 65 73 6f 75 | 72 63 65 73 20 68 61 76 |b' resou|rces hav|
|000033f0| 65 20 63 68 61 6e 67 65 | 64 20 69 6e 20 62 6f 74 |e change|d in bot|
|00003400| 68 20 66 6f 72 6d 20 61 | 6e 64 20 75 73 65 3b 20 |h form a|nd use; |
|00003410| 69 74 20 69 73 20 6e 6f | 77 20 75 70 20 74 6f 20 |it is no|w up to |
|00003420| 64 65 76 65 6c 6f 70 65 | 72 73 20 74 6f 20 74 61 |develope|rs to ta|
|00003430| 6b 65 20 74 68 65 20 6c | 65 61 64 20 61 6e 64 20 |ke the l|ead and |
|00003440| 68 65 6c 70 20 74 68 65 | 20 6e 65 77 20 73 74 61 |help the| new sta|
|00003450| 6e 64 61 72 64 20 77 6f | 72 6b 2e 20 54 68 65 20 |ndard wo|rk. The |
|00003460| 74 61 73 6b 20 63 61 6e | 20 62 65 20 64 69 76 69 |task can| be divi|
|00003470| 64 65 64 20 69 6e 74 6f | 20 74 77 6f 20 6d 61 69 |ded into| two mai|
|00003480| 6e 20 61 72 65 61 73 3a | 20 69 6e 20 6d 6f 73 74 |n areas:| in most|
|00003490| 20 63 61 73 65 73 20 61 | 6c 6c 20 64 65 76 65 6c | cases a|ll devel|
|000034a0| 6f 70 65 72 73 20 68 61 | 76 65 20 74 6f 20 64 6f |opers ha|ve to do|
|000034b0| 20 69 73 20 74 6f 20 73 | 74 69 63 6b 20 74 6f 20 | is to s|tick to |
|000034c0| 74 68 65 20 73 79 73 74 | 65 6d 20 72 65 73 6f 75 |the syst|em resou|
|000034d0| 72 63 65 73 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |rces in |order to|
|000034e0| 20 70 72 6f 76 69 64 65 | 20 61 20 68 6f 6d 6f 67 | provide| a homog|
|000034f0| 65 6e 65 6f 75 73 20 66 | 65 65 6c 20 74 6f 20 74 |eneous f|eel to t|
|00003500| 68 65 20 75 73 65 72 3b | 20 64 65 76 65 6c 6f 70 |he user;| develop|
|00003510| 65 72 73 20 69 6e 20 74 | 68 69 73 20 67 72 6f 75 |ers in t|his grou|
|00003520| 70 20 6e 65 65 64 20 6f | 6e 6c 79 20 6d 61 6b 65 |p need o|nly make|
|00003530| 20 73 75 72 65 20 74 68 | 65 20 6f 6c 64 20 27 77 | sure th|e old 'w|
|00003540| 63 74 62 27 73 20 61 72 | 65 20 64 69 73 70 6f 73 |ctb's ar|e dispos|
|00003550| 65 64 20 6f 66 20 61 6e | 64 20 74 68 61 74 20 61 |ed of an|d that a|
|00003560| 6c 6c 20 64 69 61 6c 6f | 67 73 20 61 6e 64 20 77 |ll dialo|gs and w|
|00003570| 69 6e 64 6f 77 73 20 61 | 72 65 20 62 61 73 65 64 |indows a|re based|
|00003580| 20 6f 6e 20 43 47 72 61 | 66 50 6f 72 74 73 2e 20 | on CGra|fPorts. |
|00003590| 54 68 65 20 6f 74 68 65 | 72 20 63 61 73 65 20 69 |The othe|r case i|
|000035a0| 73 20 6d 6f 72 65 20 72 | 65 73 74 72 69 63 74 65 |s more r|estricte|
|000035b0| 64 20 61 6e 64 20 69 6e | 76 6f 6c 76 65 73 20 64 |d and in|volves d|
|000035c0| 65 76 65 6c 6f 70 65 72 | 73 20 74 68 61 74 20 6e |eveloper|s that n|
|000035d0| 65 65 64 20 74 6f 20 75 | 73 65 20 74 68 65 69 72 |eed to u|se their|
|000035e0| 20 6f 77 6e 20 63 6f 6c | 6f 72 73 3b 20 74 68 65 | own col|ors; the|
|000035f0| 73 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |se appli|cations |
|00003600| 68 61 76 65 20 74 6f 20 | 64 65 66 69 6e 65 20 74 |have to |define t|
|00003610| 68 65 20 72 65 73 6f 75 | 72 63 65 73 20 75 73 69 |he resou|rces usi|
|00003620| 6e 67 20 74 68 65 20 6e | 65 77 20 74 65 6d 70 6c |ng the n|ew templ|
|00003630| 61 74 65 73 20 61 6e 64 | 20 64 6f 20 61 20 63 61 |ates and| do a ca|
|00003640| 72 65 66 75 6c 20 73 65 | 6c 65 63 74 69 6f 6e 20 |reful se|lection |
|00003650| 6f 66 20 74 68 65 20 63 | 6f 6c 6f 72 73 20 69 6e |of the c|olors in|
|00003660| 20 6f 72 64 65 72 20 6e | 6f 74 20 74 6f 20 62 72 | order n|ot to br|
|00003670| 65 61 6b 20 74 68 65 20 | 63 6f 6c 6f 72 20 73 63 |eak the |color sc|
|00003680| 68 65 6d 65 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |heme imp|lemented|
|00003690| 20 62 79 20 74 68 65 20 | 73 79 73 74 65 6d 2e 0d | by the |system..|
|000036a0| 43 68 61 6e 67 65 73 20 | 73 69 6e 63 65 20 4d 61 |Changes |since Ma|
|000036b0| 79 20 31 39 39 32 3a 20 | 49 6e 20 74 68 69 73 20 |y 1992: |In this |
|000036c0| 4e 6f 74 65 2c 20 77 65 | 20 68 61 76 65 20 72 65 |Note, we| have re|
|000036d0| 6d 6f 76 65 64 20 6d 65 | 6e 74 69 6f 6e 20 6f 66 |moved me|ntion of|
|000036e0| 20 47 65 74 47 72 61 79 | 20 61 6e 64 20 61 64 64 | GetGray| and add|
|000036f0| 65 64 20 74 65 78 74 20 | 64 65 73 63 72 69 62 69 |ed text |describi|
|00003700| 6e 67 20 68 6f 77 20 63 | 6f 6c 6f 72 69 7a 61 74 |ng how c|olorizat|
|00003710| 69 6f 6e 20 6f 66 20 77 | 69 6e 64 6f 77 73 20 72 |ion of w|indows r|
|00003720| 65 61 6c 6c 79 20 77 6f | 72 6b 73 20 28 6b 69 6e |eally wo|rks (kin|
|00003730| 64 20 6f 66 29 2e 0d 49 | 6e 74 72 6f 64 75 63 74 |d of)..I|ntroduct|
|00003740| 69 6f 6e 0d 54 68 65 20 | 67 6f 6f 64 20 6e 65 77 |ion.The |good new|
|00003750| 73 20 69 73 20 74 68 61 | 74 20 74 68 65 20 6d 65 |s is tha|t the me|
|00003760| 63 68 61 6e 69 63 73 20 | 6f 66 20 63 6f 6c 6f 72 |chanics |of color|
|00003770| 69 6e 67 20 77 69 6e 64 | 6f 77 73 20 74 68 72 6f |ing wind|ows thro|
|00003780| 75 67 68 20 74 68 65 20 | 75 73 65 20 6f 66 20 27 |ugh the |use of '|
|00003790| 77 63 74 62 27 20 72 65 | 73 6f 75 72 63 65 73 20 |wctb' re|sources |
|000037a0| 69 73 20 61 6d 61 7a 69 | 6e 67 6c 79 20 77 65 6c |is amazi|ngly wel|
|000037b0| 6c 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 69 6e 20 |l docume|nted in |
|000037c0| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|000037d0| 20 56 6f 6c 75 6d 65 20 | 56 3b 20 74 68 65 20 62 | Volume |V; the b|
|000037e0| 61 64 20 6e 65 77 73 20 | 69 73 20 74 68 61 74 20 |ad news |is that |
|000037f0| 53 79 73 74 65 6d 20 37 | 20 75 73 65 73 20 61 20 |System 7| uses a |
|00003800| 6e 65 77 20 61 6e 64 20 | 63 6f 6d 70 6c 65 74 65 |new and |complete|
|00003810| 6c 79 20 64 69 66 66 65 | 72 65 6e 74 20 73 63 68 |ly diffe|rent sch|
|00003820| 65 6d 65 20 66 6f 72 20 | 63 6f 6c 6f 72 69 7a 69 |eme for |colorizi|
|00003830| 6e 67 20 77 69 6e 64 6f | 77 73 2e 20 54 68 65 20 |ng windo|ws. The |
|00003840| 6e 65 77 20 6d 65 74 68 | 6f 64 20 75 73 65 73 20 |new meth|od uses |
|00003850| 27 77 63 74 62 27 20 72 | 65 73 6f 75 72 63 65 73 |'wctb' r|esources|
|00003860| 20 74 68 61 74 20 61 72 | 65 20 64 69 66 66 65 72 | that ar|e differ|
|00003870| 65 6e 74 20 74 68 61 6e | 20 77 68 61 74 20 69 73 |ent than| what is|
|00003880| 20 64 65 73 63 72 69 62 | 65 64 20 69 6e 20 49 6e | describ|ed in In|
|00003890| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 56 |side Mac|intosh V|
|000038a0| 6f 6c 75 6d 65 20 56 20 | 69 6e 20 62 6f 74 68 20 |olume V |in both |
|000038b0| 74 68 65 69 72 20 63 6f | 6e 74 65 6e 74 73 20 61 |their co|ntents a|
|000038c0| 6e 64 20 75 73 65 2c 20 | 61 6e 64 20 69 74 20 69 |nd use, |and it i|
|000038d0| 73 20 6e 6f 20 6c 6f 6e | 67 65 72 20 72 65 63 6f |s no lon|ger reco|
|000038e0| 6d 6d 65 6e 64 65 64 20 | 74 68 61 74 20 61 70 70 |mmended |that app|
|000038f0| 6c 69 63 61 74 69 6f 6e | 73 20 70 72 6f 76 69 64 |lication|s provid|
|00003900| 65 20 74 68 65 69 72 20 | 6f 77 6e 20 27 77 63 74 |e their |own 'wct|
|00003910| 62 27 73 20 6f 72 20 74 | 68 61 74 20 74 68 65 79 |b's or t|hat they|
|00003920| 20 63 68 61 6e 67 65 20 | 73 79 73 74 65 6d 20 27 | change |system '|
|00003930| 77 63 74 62 27 20 72 65 | 73 6f 75 72 63 65 73 20 |wctb' re|sources |
|00003940| 61 74 20 61 6c 6c 2e 0d | 54 68 69 73 20 63 68 61 |at all..|This cha|
|00003950| 6e 67 65 20 69 73 20 6e | 6f 74 20 61 72 62 69 74 |nge is n|ot arbit|
|00003960| 72 61 72 79 2e 20 53 79 | 73 74 65 6d 20 37 20 65 |rary. Sy|stem 7 e|
|00003970| 73 74 61 62 6c 69 73 68 | 65 73 20 61 20 6e 65 77 |stablish|es a new|
|00003980| 20 75 73 65 72 20 69 6e | 74 65 72 66 61 63 65 20 | user in|terface |
|00003990| 74 68 61 74 20 6e 6f 74 | 20 6f 6e 6c 79 20 70 72 |that not| only pr|
|000039a0| 65 73 65 6e 74 73 20 61 | 20 6e 65 77 20 61 6e 64 |esents a| new and|
|000039b0| 20 62 65 74 74 65 72 2d | 6c 6f 6f 6b 69 6e 67 20 | better-|looking |
|000039c0| 61 70 70 65 61 72 61 6e | 63 65 20 66 6f 72 20 77 |appearan|ce for w|
|000039d0| 69 6e 64 6f 77 73 2c 20 | 62 75 74 20 61 6c 73 6f |indows, |but also|
|000039e0| 20 65 6e 68 61 6e 63 65 | 73 20 74 68 65 20 75 73 | enhance|s the us|
|000039f0| 65 72 20 70 65 72 63 65 | 70 74 69 6f 6e 20 6f 66 |er perce|ption of|
|00003a00| 20 66 75 6e 63 74 69 6f | 6e 2e 20 54 68 65 20 6e | functio|n. The n|
|00003a10| 65 77 20 6c 6f 6f 6b 20 | 68 65 6c 70 73 20 74 68 |ew look |helps th|
|00003a20| 65 20 75 73 65 72 20 66 | 69 6e 64 20 74 68 65 20 |e user f|ind the |
|00003a30| 70 6c 61 63 65 20 74 6f | 20 63 6c 69 63 6b 20 69 |place to| click i|
|00003a40| 6e 20 6f 72 64 65 72 20 | 74 6f 20 70 72 6f 64 75 |n order |to produ|
|00003a50| 63 65 20 61 20 63 65 72 | 74 61 69 6e 20 72 65 73 |ce a cer|tain res|
|00003a60| 75 6c 74 2e 0d 41 73 20 | 77 69 74 68 20 6d 6f 73 |ult..As |with mos|
|00003a70| 74 20 6f 66 20 74 68 65 | 20 72 65 73 74 20 6f 66 |t of the| rest of|
|00003a80| 20 74 68 65 20 69 6e 74 | 65 72 66 61 63 65 2c 20 | the int|erface, |
|00003a90| 41 70 70 6c 65 20 68 61 | 73 20 61 6c 72 65 61 64 |Apple ha|s alread|
|00003aa0| 79 20 64 6f 6e 65 20 74 | 68 65 20 72 65 73 65 61 |y done t|he resea|
|00003ab0| 72 63 68 20 61 6e 64 20 | 74 65 73 74 69 6e 67 20 |rch and |testing |
|00003ac0| 66 6f 72 20 79 6f 75 2c | 20 73 6f 20 6c 65 74 20 |for you,| so let |
|00003ad0| 74 68 65 20 73 79 73 74 | 65 6d 20 64 6f 20 74 68 |the syst|em do th|
|00003ae0| 65 20 77 6f 72 6b 2c 20 | 61 6e 64 20 79 6f 75 20 |e work, |and you |
|00003af0| 63 61 6e 20 66 6f 63 75 | 73 20 6f 6e 20 79 6f 75 |can focu|s on you|
|00003b00| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |r applic|ation.s |
|00003b10| 63 6f 64 65 2e 20 4f 66 | 20 63 6f 75 72 73 65 20 |code. Of| course |
|00003b20| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |an appli|cation c|
|00003b30| 61 6e 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 27 |an repla|ce the '|
|00003b40| 77 63 74 62 27 20 70 72 | 6f 76 69 64 65 64 20 62 |wctb' pr|ovided b|
|00003b50| 79 20 74 68 65 20 73 79 | 73 74 65 6d 2c 20 62 75 |y the sy|stem, bu|
|00003b60| 74 20 74 68 65 20 72 65 | 73 75 6c 74 73 20 61 72 |t the re|sults ar|
|00003b70| 65 20 62 6f 75 6e 64 20 | 74 6f 20 70 72 6f 64 75 |e bound |to produ|
|00003b80| 63 65 20 6c 65 73 73 2d | 74 68 61 6e 2d 64 65 73 |ce less-|than-des|
|00003b90| 69 72 61 62 6c 65 20 72 | 65 73 75 6c 74 73 2e 0d |irable r|esults..|
|00003ba0| 45 66 66 65 63 74 73 20 | 6f 6e 20 65 78 69 73 74 |Effects |on exist|
|00003bb0| 69 6e 67 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ing appl|ications|
|00003bc0| 0d 4e 6f 74 65 3a 20 27 | 63 63 74 62 27 20 72 65 |.Note: '|cctb' re|
|00003bd0| 73 6f 75 72 63 65 73 20 | 61 72 65 20 6e 6f 77 20 |sources |are now |
|00003be0| 74 69 67 68 74 6c 79 20 | 63 6f 75 70 6c 65 64 20 |tightly |coupled |
|00003bf0| 74 6f 20 27 77 63 74 62 | 27 73 20 28 65 73 70 65 |to 'wctb|'s (espe|
|00003c00| 63 69 61 6c 6c 79 20 66 | 6f 72 20 73 63 72 6f 6c |cially f|or scrol|
|00003c10| 6c 20 62 61 72 73 29 20 | 61 6e 64 20 74 68 65 72 |l bars) |and ther|
|00003c20| 65 66 6f 72 65 20 74 68 | 65 20 64 69 73 63 75 73 |efore th|e discus|
|00003c30| 73 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 65 |sion abo|ut the e|
|00003c40| 66 66 65 63 74 73 20 6f | 66 20 74 68 65 20 6e 65 |ffects o|f the ne|
|00003c50| 77 20 73 63 68 65 6d 65 | 20 6f 6e 20 6f 6c 64 20 |w scheme| on old |
|00003c60| 27 77 63 74 62 27 73 20 | 61 6c 73 6f 20 61 70 70 |'wctb's |also app|
|00003c70| 6c 69 65 73 20 74 6f 20 | 27 63 63 74 62 27 73 3b |lies to |'cctb's;|
|00003c80| 20 74 68 65 20 65 78 74 | 65 6e 74 20 6f 66 20 74 | the ext|ent of t|
|00003c90| 68 65 20 65 66 66 65 63 | 74 20 64 65 70 65 6e 64 |he effec|t depend|
|00003ca0| 73 20 6f 6e 20 74 68 65 | 20 74 79 70 65 20 6f 66 |s on the| type of|
|00003cb0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 0d 41 | applica|tion. .A|
|00003cc0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that|
|00003cd0| 20 64 69 72 65 63 74 6c | 79 20 61 63 63 65 73 73 | directl|y access|
|00003ce0| 20 27 77 63 74 62 27 20 | 72 65 73 6f 75 72 63 65 | 'wctb' |resource|
|00003cf0| 73 20 74 6f 20 63 75 73 | 74 6f 6d 20 63 6f 6c 6f |s to cus|tom colo|
|00003d00| 72 20 77 69 6e 64 6f 77 | 73 20 61 6e 64 20 63 6f |r window|s and co|
|00003d10| 6e 74 72 6f 6c 73 20 61 | 6e 64 20 63 61 6e 20 64 |ntrols a|nd can d|
|00003d20| 65 61 6c 20 6f 6e 6c 79 | 20 77 69 74 68 20 74 68 |eal only| with th|
|00003d30| 65 20 6f 6c 64 20 72 65 | 73 6f 75 72 63 65 73 20 |e old re|sources |
|00003d40| 77 69 6c 6c 20 6e 6f 74 | 20 77 6f 72 6b 3b 20 74 |will not| work; t|
|00003d50| 68 65 73 65 20 72 65 73 | 6f 75 72 63 65 73 20 61 |hese res|ources a|
|00003d60| 72 65 20 64 69 66 66 65 | 72 65 6e 74 2c 20 61 6e |re diffe|rent, an|
|00003d70| 64 20 74 68 65 20 65 6c | 65 6d 65 6e 74 73 20 74 |d the el|ements t|
|00003d80| 68 61 74 20 63 6f 72 72 | 65 73 70 6f 6e 64 20 74 |hat corr|espond t|
|00003d90| 6f 20 74 68 65 20 6f 6c | 64 20 70 61 72 74 73 20 |o the ol|d parts |
|00003da0| 70 65 72 66 6f 72 6d 20 | 6e 65 77 20 66 75 6e 63 |perform |new func|
|00003db0| 74 69 6f 6e 73 20 6f 72 | 20 61 72 65 20 69 67 6e |tions or| are ign|
|00003dc0| 6f 72 65 64 2e 20 44 69 | 72 65 63 74 6c 79 20 61 |ored. Di|rectly a|
|00003dd0| 63 63 65 73 73 69 6e 67 | 20 27 77 63 74 62 27 20 |ccessing| 'wctb' |
|00003de0| 72 65 73 6f 75 72 63 65 | 73 20 6d 61 79 20 63 61 |resource|s may ca|
|00003df0| 75 73 65 20 73 79 73 74 | 65 6d 20 63 72 61 73 68 |use syst|em crash|
|00003e00| 65 73 20 61 6e 64 2f 6f | 72 20 70 72 6f 64 75 63 |es and/o|r produc|
|00003e10| 65 20 72 65 61 6c 6c 79 | 20 75 67 6c 79 20 72 65 |e really| ugly re|
|00003e20| 73 75 6c 74 73 2e 0d 53 | 6f 6c 75 74 69 6f 6e 3a |sults..S|olution:|
|00003e30| 20 52 65 76 69 73 65 20 | 61 70 70 6c 69 63 61 74 | Revise |applicat|
|00003e40| 69 6f 6e 73 20 61 6e 64 | 20 75 74 69 6c 69 74 69 |ions and| utiliti|
|00003e50| 65 73 20 74 68 61 74 20 | 6d 61 6e 69 70 75 6c 61 |es that |manipula|
|00003e60| 74 65 20 27 77 63 74 62 | 27 73 20 74 6f 20 74 61 |te 'wctb|'s to ta|
|00003e70| 6b 65 20 69 6e 74 6f 20 | 61 63 63 6f 75 6e 74 20 |ke into |account |
|00003e80| 74 68 65 20 6e 65 77 20 | 64 61 74 61 20 73 74 72 |the new |data str|
|00003e90| 75 63 74 75 72 65 2e 0d | 54 68 65 20 73 79 73 74 |ucture..|The syst|
|00003ea0| 65 6d 20 77 69 6c 6c 20 | 69 67 6e 6f 72 65 20 6f |em will |ignore o|
|00003eb0| 6c 64 2d 73 74 79 6c 65 | 20 27 77 63 74 62 27 20 |ld-style| 'wctb' |
|00003ec0| 72 65 73 6f 75 72 63 65 | 73 3b 20 61 73 20 61 20 |resource|s; as a |
|00003ed0| 72 65 73 75 6c 74 20 61 | 70 70 6c 69 63 61 74 69 |result a|pplicati|
|00003ee0| 6f 6e 73 20 74 68 61 74 | 20 70 72 6f 76 69 64 65 |ons that| provide|
|00003ef0| 20 74 68 65 69 72 20 6f | 77 6e 20 70 72 65 2d 53 | their o|wn pre-S|
|00003f00| 79 73 74 65 6d 20 37 20 | 77 69 6e 64 6f 77 20 63 |ystem 7 |window c|
|00003f10| 6f 6c 6f 72 20 74 61 62 | 6c 65 20 72 65 73 6f 75 |olor tab|le resou|
|00003f20| 72 63 65 73 20 77 69 6c | 6c 20 6e 6f 74 20 67 65 |rces wil|l not ge|
|00003f30| 74 20 74 68 65 20 63 6f | 6c 6f 72 73 20 74 68 65 |t the co|lors the|
|00003f40| 79 20 75 73 65 64 20 74 | 6f 20 73 65 65 2e 20 54 |y used t|o see. T|
|00003f50| 68 65 20 73 79 73 74 65 | 6d 20 77 69 6c 6c 20 75 |he syste|m will u|
|00003f60| 73 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 6c |se the d|efault l|
|00003f70| 6f 6f 6b 20 66 6f 72 20 | 74 68 65 20 77 69 6e 64 |ook for |the wind|
|00003f80| 6f 77 73 2e 20 49 66 20 | 6e 65 77 20 73 74 79 6c |ows. If |new styl|
|00003f90| 65 20 72 65 73 6f 75 72 | 63 65 73 20 61 72 65 20 |e resour|ces are |
|00003fa0| 70 72 6f 76 69 64 65 64 | 2c 20 74 68 65 6e 20 74 |provided|, then t|
|00003fb0| 68 65 20 65 6e 74 72 69 | 65 73 20 77 69 6c 6c 20 |he entri|es will |
|00003fc0| 62 65 20 75 73 65 64 20 | 61 63 63 6f 72 64 69 6e |be used |accordin|
|00003fd0| 67 20 74 6f 20 74 68 65 | 20 6e 65 77 20 73 63 68 |g to the| new sch|
|00003fe0| 65 6d 65 3b 20 63 68 61 | 6e 63 65 73 20 61 72 65 |eme; cha|nces are|
|00003ff0| 20 74 68 65 20 72 65 73 | 75 6c 74 73 20 61 72 65 | the res|ults are|
|00004000| 20 6e 6f 74 20 67 6f 69 | 6e 67 20 74 6f 20 62 65 | not goi|ng to be|
|00004010| 20 61 73 20 67 6f 6f 64 | 20 61 73 20 74 68 6f 73 | as good| as thos|
|00004020| 65 20 6f 62 74 61 69 6e | 65 64 20 77 69 74 68 20 |e obtain|ed with |
|00004030| 74 68 65 20 73 79 73 74 | 65 6d 20 63 6f 6c 6f 72 |the syst|em color|
|00004040| 73 2e 0d 53 6f 6c 75 74 | 69 6f 6e 3a 20 54 61 6b |s..Solut|ion: Tak|
|00004050| 65 20 61 77 61 79 20 74 | 68 65 20 6f 6c 64 20 72 |e away t|he old r|
|00004060| 65 73 6f 75 72 63 65 73 | 20 61 6e 64 20 67 65 74 |esources| and get|
|00004070| 20 75 73 65 64 20 74 6f | 20 74 68 65 20 6e 65 77 | used to| the new|
|00004080| 20 73 79 73 74 65 6d 20 | 63 6f 6c 6f 72 73 3b 20 | system |colors; |
|00004090| 79 6f 75 72 20 75 73 65 | 72 73 20 77 69 6c 6c 20 |your use|rs will |
|000040a0| 61 70 70 72 65 63 69 61 | 74 65 20 74 68 61 74 20 |apprecia|te that |
|000040b0| 79 6f 75 72 20 77 69 6e | 64 6f 77 73 20 61 72 65 |your win|dows are|
|000040c0| 20 73 69 6d 69 6c 61 72 | 20 74 6f 20 74 68 6f 73 | similar| to thos|
|000040d0| 65 20 61 63 72 6f 73 73 | 20 74 68 65 20 73 79 73 |e across| the sys|
|000040e0| 74 65 6d 2e 20 49 6e 20 | 74 68 65 20 66 65 77 20 |tem. In |the few |
|000040f0| 63 61 73 65 73 20 77 68 | 65 72 65 20 69 74 20 6d |cases wh|ere it m|
|00004100| 61 6b 65 73 20 73 65 6e | 73 65 2c 20 75 70 64 61 |akes sen|se, upda|
|00004110| 74 65 20 79 6f 75 72 20 | 72 65 73 6f 75 72 63 65 |te your |resource|
|00004120| 73 20 74 6f 20 74 68 65 | 20 6e 65 77 20 74 65 6d |s to the| new tem|
|00004130| 70 6c 61 74 65 73 2e 0d | 41 70 70 6c 69 63 61 74 |plates..|Applicat|
|00004140| 69 6f 6e 73 20 74 68 61 | 74 20 63 61 72 72 79 20 |ions tha|t carry |
|00004150| 74 68 65 69 72 20 6f 77 | 6e 20 27 57 44 45 46 27 |their ow|n 'WDEF'|
|00004160| 20 61 6e 64 20 27 43 44 | 45 46 27 20 72 65 73 6f | and 'CD|EF' reso|
|00004170| 75 72 63 65 73 20 77 69 | 6c 6c 20 6e 6f 74 20 67 |urces wi|ll not g|
|00004180| 65 74 20 74 68 65 20 6e | 65 77 20 6e 69 63 65 2d |et the n|ew nice-|
|00004190| 6c 6f 6f 6b 69 6e 67 20 | 77 69 6e 64 6f 77 73 20 |looking |windows |
|000041a0| 70 72 6f 76 69 64 65 64 | 20 62 79 20 74 68 65 20 |provided| by the |
|000041b0| 73 79 73 74 65 6d 2c 20 | 61 6e 64 20 61 6c 74 68 |system, |and alth|
|000041c0| 6f 75 67 68 20 74 68 65 | 73 65 20 61 70 70 6c 69 |ough the|se appli|
|000041d0| 63 61 74 69 6f 6e 73 20 | 73 68 6f 75 6c 64 20 6e |cations |should n|
|000041e0| 6f 74 20 65 78 70 65 72 | 69 65 6e 63 65 20 70 72 |ot exper|ience pr|
|000041f0| 6f 62 6c 65 6d 73 20 73 | 69 6e 63 65 20 74 68 65 |oblems s|ince the|
|00004200| 79 20 61 72 65 20 64 6f | 69 6e 67 20 61 6c 6c 20 |y are do|ing all |
|00004210| 74 68 65 20 77 6f 72 6b | 20 74 68 65 6d 73 65 6c |the work| themsel|
|00004220| 76 65 73 2c 20 74 68 65 | 20 72 65 73 75 6c 74 20 |ves, the| result |
|00004230| 77 69 6c 6c 20 62 65 20 | 61 20 6e 65 67 61 74 69 |will be |a negati|
|00004240| 76 65 20 6f 6e 65 20 66 | 72 6f 6d 20 74 68 65 20 |ve one f|rom the |
|00004250| 67 6f 6f 64 20 75 73 65 | 72 20 69 6e 74 65 72 66 |good use|r interf|
|00004260| 61 63 65 20 70 65 72 73 | 70 65 63 74 69 76 65 2e |ace pers|pective.|
|00004270| 20 54 68 65 73 65 20 61 | 70 70 6c 69 63 61 74 69 | These a|pplicati|
|00004280| 6f 6e 73 20 77 69 6c 6c | 20 68 61 76 65 20 77 69 |ons will| have wi|
|00004290| 6e 64 6f 77 73 20 77 69 | 74 68 20 74 68 65 20 6f |ndows wi|th the o|
|000042a0| 6c 64 20 6c 6f 6f 6b 20 | 77 68 65 6e 20 61 6c 6c |ld look |when all|
|000042b0| 20 6f 74 68 65 72 73 20 | 6c 6f 6f 6b 20 6d 6f 64 | others |look mod|
|000042c0| 65 72 6e 2e 0d 53 6f 6c | 75 74 69 6f 6e 3a 20 44 |ern..Sol|ution: D|
|000042d0| 65 76 65 6c 6f 70 65 72 | 73 20 73 68 6f 75 6c 64 |eveloper|s should|
|000042e0| 20 72 65 76 69 73 65 20 | 74 68 65 69 72 20 61 70 | revise |their ap|
|000042f0| 70 6c 69 63 61 74 69 6f | 6e 73 20 74 6f 20 69 6e |plicatio|ns to in|
|00004300| 63 6c 75 64 65 20 27 57 | 44 45 46 27 20 61 6e 64 |clude 'W|DEF' and|
|00004310| 20 27 43 44 45 46 27 20 | 72 65 73 6f 75 72 63 65 | 'CDEF' |resource|
|00004320| 73 20 74 68 61 74 20 61 | 72 65 20 63 6f 6d 70 61 |s that a|re compa|
|00004330| 74 69 62 6c 65 20 77 69 | 74 68 20 74 68 65 20 6e |tible wi|th the n|
|00004340| 65 77 20 63 6f 6c 6f 72 | 20 69 6e 74 65 72 66 61 |ew color| interfa|
|00004350| 63 65 2e 20 41 73 20 6f | 66 20 74 68 69 73 20 77 |ce. As o|f this w|
|00004360| 72 69 74 69 6e 67 2c 20 | 73 61 6d 70 6c 65 20 63 |riting, |sample c|
|00004370| 6f 64 65 20 66 6f 72 20 | 27 57 44 45 46 27 20 63 |ode for |'WDEF' c|
|00004380| 61 6e 20 62 65 20 66 6f | 75 6e 64 20 6f 6e 20 41 |an be fo|und on A|
|00004390| 70 70 6c 65 4c 69 6e 6b | 20 69 6e 20 74 68 65 20 |ppleLink| in the |
|000043a0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 6f 63 61 74 69 |followin|g locati|
|000043b0| 6f 6e 3a 0d 09 09 d2 44 | 65 76 65 6c 6f 70 65 72 |on:....D|eveloper|
|000043c0| 20 53 75 70 70 6f 72 74 | 3a 44 65 76 65 6c 6f 70 | Support|:Develop|
|000043d0| 65 72 20 53 65 72 76 69 | 63 65 73 3a 53 79 73 74 |er Servi|ces:Syst|
|000043e0| 65 6d 20 53 6f 66 74 77 | 61 72 65 3a 0d 09 09 20 |em Softw|are:... |
|000043f0| 20 4d 6f 72 65 20 55 53 | 20 53 79 73 74 65 6d 20 | More US| System |
|00004400| 53 6f 66 74 77 61 72 65 | 3a 53 79 73 74 65 6d 20 |Software|:System |
|00004410| 37 20 47 6f 6c 64 65 6e | 20 4d 61 73 74 65 72 3a |7 Golden| Master:|
|00004420| 53 79 73 37 57 44 45 46 | d3 0d 43 65 72 74 61 69 |Sys7WDEF|..Certai|
|00004430| 6e 20 63 6f 6c 6f 72 73 | 20 61 72 65 20 63 6f 75 |n colors| are cou|
|00004440| 6e 74 65 64 20 6f 6e 20 | 74 6f 20 70 72 6f 64 75 |nted on |to produ|
|00004450| 63 65 20 74 68 65 20 63 | 6f 72 72 65 63 74 20 73 |ce the c|orrect s|
|00004460| 68 61 64 65 73 20 69 6e | 20 74 68 69 73 20 6e 65 |hades in| this ne|
|00004470| 77 20 63 6f 6c 6f 72 20 | 69 6e 74 65 72 66 61 63 |w color |interfac|
|00004480| 65 3b 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |e; appli|cations |
|00004490| 74 68 61 74 20 63 6f 6d | 70 6c 65 74 65 6c 79 20 |that com|pletely |
|000044a0| 64 65 73 74 72 6f 79 20 | 74 68 65 20 63 6f 6c 6f |destroy |the colo|
|000044b0| 72 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 6f 66 |r enviro|nment of|
|000044c0| 20 74 68 65 20 73 79 73 | 74 65 6d 20 77 69 6c 6c | the sys|tem will|
|000044d0| 20 63 61 75 73 65 20 69 | 6e 74 65 72 66 61 63 65 | cause i|nterface|
|000044e0| 20 70 72 6f 62 6c 65 6d | 73 20 66 6f 72 20 74 68 | problem|s for th|
|000044f0| 65 20 75 73 65 72 2e 20 | 49 6e 20 74 68 65 20 66 |e user. |In the f|
|00004500| 65 77 20 63 61 73 65 73 | 20 77 68 65 6e 20 74 68 |ew cases| when th|
|00004510| 65 20 73 79 73 74 65 6d | 20 63 61 6e 20 66 69 6e |e system| can fin|
|00004520| 64 20 63 6f 6c 6f 72 73 | 20 74 68 61 74 20 70 72 |d colors| that pr|
|00004530| 6f 64 75 63 65 20 61 20 | 73 69 6d 69 6c 61 72 20 |oduce a |similar |
|00004540| 73 68 61 64 69 6e 67 20 | 65 66 66 65 63 74 2c 20 |shading |effect, |
|00004550| 74 68 65 20 73 79 73 74 | 65 6d 20 77 69 6c 6c 20 |the syst|em will |
|00004560| 75 73 65 20 74 68 6f 73 | 65 20 63 6f 6c 6f 72 73 |use thos|e colors|
|00004570| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 20 77 69 6e | and dis|play win|
|00004580| 64 6f 77 73 20 75 73 69 | 6e 67 20 74 68 65 20 63 |dows usi|ng the c|
|00004590| 6f 6c 6f 72 20 69 6e 74 | 65 72 66 61 63 65 20 28 |olor int|erface (|
|000045a0| 61 6c 74 68 6f 75 67 68 | 20 6e 6f 74 20 74 68 65 |although| not the|
|000045b0| 20 73 61 6d 65 20 61 73 | 20 61 6c 6c 20 74 68 65 | same as| all the|
|000045c0| 20 6f 74 68 65 72 20 77 | 69 6e 64 6f 77 73 20 73 | other w|indows s|
|000045d0| 69 6e 63 65 20 74 68 65 | 20 63 6f 6c 6f 72 73 20 |ince the| colors |
|000045e0| 61 72 65 20 64 69 66 66 | 65 72 65 6e 74 29 2e 20 |are diff|erent). |
|000045f0| 57 68 65 6e 20 74 68 65 | 20 73 79 73 74 65 6d 20 |When the| system |
|00004600| 63 61 6e 20 6e 6f 74 20 | 63 6f 6d 65 20 75 70 20 |can not |come up |
|00004610| 77 69 74 68 20 61 20 72 | 65 61 73 6f 6e 61 62 6c |with a r|easonabl|
|00004620| 65 20 61 6c 74 65 72 6e | 61 74 69 76 65 20 66 6f |e altern|ative fo|
|00004630| 72 20 74 68 65 20 63 6f | 6c 6f 72 73 20 69 74 20 |r the co|lors it |
|00004640| 6e 65 65 64 73 2c 20 69 | 74 20 72 65 76 65 72 74 |needs, i|t revert|
|00004650| 73 20 74 6f 20 64 69 73 | 70 6c 61 79 69 6e 67 20 |s to dis|playing |
|00004660| 62 6c 61 63 6b 2d 61 6e | 64 2d 77 68 69 74 65 20 |black-an|d-white |
|00004670| 77 69 6e 64 6f 77 73 2e | 0d 53 6f 6c 75 74 69 6f |windows.|.Solutio|
|00004680| 6e 3a 20 44 65 76 65 6c | 6f 70 65 72 73 20 73 68 |n: Devel|opers sh|
|00004690| 6f 75 6c 64 20 72 65 76 | 69 73 65 20 74 68 65 69 |ould rev|ise thei|
|000046a0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 73 |r applic|ations s|
|000046b0| 6f 20 74 68 61 74 20 74 | 68 65 79 20 64 6f 6e d5 |o that t|hey don.|
|000046c0| 74 20 74 61 6b 65 20 6f | 76 65 72 20 74 68 65 20 |t take o|ver the |
|000046d0| 63 6f 6c 6f 72 20 65 6e | 76 69 72 6f 6e 6d 65 6e |color en|vironmen|
|000046e0| 74 20 61 6e 64 20 64 6f | 6e d5 74 20 6c 65 61 76 |t and do|n.t leav|
|000046f0| 65 20 74 68 65 20 63 6f | 6c 6f 72 73 20 61 6c 6c |e the co|lors all|
|00004700| 20 73 63 72 65 77 65 64 | 20 75 70 20 77 68 65 6e | screwed| up when|
|00004710| 20 73 77 69 74 63 68 69 | 6e 67 20 6f 75 74 2e 20 | switchi|ng out. |
|00004720| 44 6f 20 75 73 65 20 74 | 68 65 20 50 61 6c 65 74 |Do use t|he Palet|
|00004730| 74 65 20 4d 61 6e 61 67 | 65 72 2c 20 64 6f 6e d5 |te Manag|er, don.|
|00004740| 74 20 62 6c 61 73 74 20 | 63 6f 6c 6f 72 20 74 61 |t blast |color ta|
|00004750| 62 6c 65 73 2c 20 61 6e | 64 20 64 6f 6e d5 74 20 |bles, an|d don.t |
|00004760| 68 6f 67 20 61 6c 6c 20 | 74 68 65 20 61 76 61 69 |hog all |the avai|
|00004770| 6c 61 62 6c 65 20 63 6f | 6c 6f 72 73 2e 20 54 68 |lable co|lors. Th|
|00004780| 65 20 6b 65 79 20 74 6f | 20 68 61 70 70 69 6e 65 |e key to| happine|
|00004790| 73 73 20 69 73 20 6d 6f | 64 65 72 61 74 69 6f 6e |ss is mo|deration|
|000047a0| 2e 0d 54 68 65 20 46 61 | 63 74 73 20 4d 61 d5 61 |..The Fa|cts Ma.a|
|000047b0| 6d 2c 20 4a 75 73 74 20 | 74 68 65 20 46 61 63 74 |m, Just |the Fact|
|000047c0| 73 20 c9 0d 54 68 65 20 | 6e 65 77 20 64 61 74 61 |s ..The |new data|
|000047d0| 20 73 74 72 75 63 74 75 | 72 65 20 66 6f 72 20 27 | structu|re for '|
|000047e0| 77 63 74 62 27 20 72 65 | 73 6f 75 72 63 65 73 20 |wctb' re|sources |
|000047f0| 72 65 73 65 6d 62 6c 65 | 73 20 74 68 65 20 6f 6c |resemble|s the ol|
|00004800| 64 20 66 6f 72 6d 61 74 | 2c 20 62 75 74 20 6d 6f |d format|, but mo|
|00004810| 72 65 20 d2 70 61 72 74 | d3 20 66 69 65 6c 64 73 |re .part|. fields|
|00004820| 20 61 72 65 20 6e 6f 77 | 20 70 72 65 73 65 6e 74 | are now| present|
|00004830| 2e 20 54 68 65 20 70 61 | 72 74 20 63 6f 64 65 73 |. The pa|rt codes|
|00004840| 20 66 6f 72 20 74 68 65 | 20 6e 65 77 20 27 77 63 | for the| new 'wc|
|00004850| 74 62 27 73 20 61 72 65 | 3a 0d 50 61 72 74 20 63 |tb's are|:.Part c|
|00004860| 6f 64 65 3a 09 50 61 72 | 74 20 69 74 20 63 6f 72 |ode:.Par|t it cor|
|00004870| 72 65 73 70 6f 6e 64 73 | 20 74 6f 3a 0d 30 09 77 |responds| to:.0.w|
|00004880| 43 6f 6e 74 65 6e 74 43 | 6f 6c 6f 72 09 43 6f 6e |ContentC|olor.Con|
|00004890| 74 65 6e 74 20 61 72 65 | 61 20 6f 66 20 74 68 65 |tent are|a of the|
|000048a0| 20 77 69 6e 64 6f 77 0d | 31 09 77 46 72 61 6d 65 | window.|1.wFrame|
|000048b0| 43 6f 6c 6f 72 09 46 72 | 61 6d 65 0d 32 09 77 54 |Color.Fr|ame.2.wT|
|000048c0| 65 78 74 43 6f 6c 6f 72 | 09 57 69 6e 64 6f 77 20 |extColor|.Window |
|000048d0| 74 69 74 6c 65 20 63 6f | 6c 6f 72 20 61 6e 64 20 |title co|lor and |
|000048e0| 64 65 66 61 75 6c 74 20 | 74 65 78 74 20 63 6f 6c |default |text col|
|000048f0| 6f 72 20 66 6f 72 20 64 | 69 61 6c 6f 67 20 62 75 |or for d|ialog bu|
|00004900| 74 74 6f 6e 73 0d 33 09 | 77 48 69 6c 69 74 65 43 |ttons.3.|wHiliteC|
|00004910| 6f 6c 6f 72 09 52 65 73 | 65 72 76 65 64 0d 34 09 |olor.Res|erved.4.|
|00004920| 77 54 69 74 6c 65 42 61 | 72 43 6f 6c 6f 72 09 52 |wTitleBa|rColor.R|
|00004930| 65 73 65 72 76 65 64 0d | 35 09 77 48 69 6c 69 74 |eserved.|5.wHilit|
|00004940| 65 43 6f 6c 6f 72 4c 69 | 67 68 74 09 55 73 65 64 |eColorLi|ght.Used|
|00004950| 20 74 6f 20 70 72 6f 64 | 75 63 65 20 63 6f 6c 6f | to prod|uce colo|
|00004960| 72 73 20 69 6e 20 74 69 | 74 6c 65 20 62 61 72 20 |rs in ti|tle bar |
|00004970| 73 74 72 69 70 65 73 20 | 61 6e 64 20 66 6f 72 20 |stripes |and for |
|00004980| 67 72 61 79 65 64 20 74 | 65 78 74 0d 36 09 77 48 |grayed t|ext.6.wH|
|00004990| 69 6c 69 74 65 43 6f 6c | 6f 72 44 61 72 6b 09 55 |iliteCol|orDark.U|
|000049a0| 73 65 64 20 74 6f 20 70 | 72 6f 64 75 63 65 20 63 |sed to p|roduce c|
|000049b0| 6f 6c 6f 72 73 20 69 6e | 20 74 69 74 6c 65 20 62 |olors in| title b|
|000049c0| 61 72 20 73 74 72 69 70 | 65 73 20 61 6e 64 20 66 |ar strip|es and f|
|000049d0| 6f 72 20 67 72 61 79 65 | 64 20 74 65 78 74 0d 37 |or graye|d text.7|
|000049e0| 09 77 54 69 74 6c 65 42 | 61 72 4c 69 67 68 74 09 |.wTitleB|arLight.|
|000049f0| 55 73 65 64 20 74 6f 20 | 70 72 6f 64 75 63 65 20 |Used to |produce |
|00004a00| 63 6f 6c 6f 72 73 20 69 | 6e 20 74 69 74 6c 65 20 |colors i|n title |
|00004a10| 62 61 72 20 62 61 63 6b | 67 72 6f 75 6e 64 0d 38 |bar back|ground.8|
|00004a20| 09 77 54 69 74 6c 65 42 | 61 72 44 61 72 6b 09 55 |.wTitleB|arDark.U|
|00004a30| 73 65 64 20 74 6f 20 70 | 72 6f 64 75 63 65 20 63 |sed to p|roduce c|
|00004a40| 6f 6c 6f 72 73 20 69 6e | 20 74 69 74 6c 65 20 62 |olors in| title b|
|00004a50| 61 72 20 62 61 63 6b 67 | 72 6f 75 6e 64 0d 39 09 |ar backg|round.9.|
|00004a60| 77 44 69 61 6c 6f 67 4c | 69 67 68 74 09 55 73 65 |wDialogL|ight.Use|
|00004a70| 64 20 74 6f 20 70 72 6f | 64 75 63 65 20 74 68 65 |d to pro|duce the|
|00004a80| 20 63 6f 6c 6f 72 73 20 | 69 6e 20 61 20 64 69 61 | colors |in a dia|
|00004a90| 6c 6f 67 20 62 6f 78 d5 | 73 20 62 65 76 65 6c 65 |log box.|s bevele|
|00004aa0| 64 20 66 72 61 6d 65 0d | 31 30 09 77 44 69 61 6c |d frame.|10.wDial|
|00004ab0| 6f 67 44 61 72 6b 09 55 | 73 65 64 20 74 6f 20 70 |ogDark.U|sed to p|
|00004ac0| 72 6f 64 75 63 65 20 74 | 68 65 20 63 6f 6c 6f 72 |roduce t|he color|
|00004ad0| 73 20 69 6e 20 61 20 64 | 69 61 6c 6f 67 20 62 6f |s in a d|ialog bo|
|00004ae0| 78 d5 73 20 62 65 76 65 | 6c 65 64 20 66 72 61 6d |x.s beve|led fram|
|00004af0| 65 0d 31 31 09 77 54 69 | 6e 67 65 4c 69 67 68 74 |e.11.wTi|ngeLight|
|00004b00| 09 55 73 65 64 20 74 6f | 20 70 72 6f 64 75 63 65 |.Used to| produce|
|00004b10| 20 74 69 6e 67 65 73 20 | 69 6e 20 70 61 72 74 73 | tinges |in parts|
|00004b20| 20 6f 66 20 77 69 6e 64 | 6f 77 73 0d 31 32 09 77 | of wind|ows.12.w|
|00004b30| 54 69 6e 67 65 44 61 72 | 6b 09 55 73 65 64 20 74 |TingeDar|k.Used t|
|00004b40| 6f 20 70 72 6f 64 75 63 | 65 20 74 69 6e 67 65 73 |o produc|e tinges|
|00004b50| 20 69 6e 20 70 61 72 74 | 73 20 6f 66 20 77 69 6e | in part|s of win|
|00004b60| 64 6f 77 73 0d 54 68 65 | 20 63 6f 6c 6f 72 73 20 |dows.The| colors |
|00004b70| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 73 20 61 |in the w|indows a|
|00004b80| 72 65 20 67 65 6e 65 72 | 61 74 65 64 20 61 6c 67 |re gener|ated alg|
|00004b90| 6f 72 69 74 68 6d 69 63 | 61 6c 6c 79 20 75 73 69 |orithmic|ally usi|
|00004ba0| 6e 67 20 74 68 65 20 63 | 6f 6c 6f 72 73 20 69 6e |ng the c|olors in|
|00004bb0| 20 74 68 65 20 53 79 73 | 74 65 6d 20 37 20 27 77 | the Sys|tem 7 'w|
|00004bc0| 63 74 62 27 2e 20 4d 6f | 73 74 20 6f 66 20 74 68 |ctb'. Mo|st of th|
|00004bd0| 65 20 63 6f 6c 6f 72 73 | 20 61 72 65 20 73 68 61 |e colors| are sha|
|00004be0| 64 65 73 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |des betw|een the |
|00004bf0| 6c 69 67 68 74 20 61 6e | 64 20 64 61 72 6b 20 63 |light an|d dark c|
|00004c00| 6f 6c 6f 72 73 2e 20 46 | 6f 72 20 65 78 61 6d 70 |olors. F|or examp|
|00004c10| 6c 65 2c 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 |le, the |backgrou|
|00004c20| 6e 64 20 63 6f 6c 6f 72 | 20 6f 66 20 74 68 65 20 |nd color| of the |
|00004c30| 74 69 74 6c 65 20 62 61 | 72 20 69 73 20 61 20 73 |title ba|r is a s|
|00004c40| 68 61 64 65 20 69 6e 20 | 62 65 74 77 65 65 6e 20 |hade in |between |
|00004c50| 77 54 69 74 6c 65 42 61 | 72 4c 69 67 68 74 20 61 |wTitleBa|rLight a|
|00004c60| 6e 64 20 77 54 69 74 6c | 65 42 61 72 44 61 72 6b |nd wTitl|eBarDark|
|00004c70| 2e 20 54 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |. The re|sulting |
|00004c80| 63 6f 6c 6f 72 20 69 73 | 20 6f 62 74 61 69 6e 65 |color is| obtaine|
|00004c90| 64 20 61 73 20 64 65 73 | 63 72 69 62 65 64 20 6c |d as des|cribed l|
|00004ca0| 61 74 65 72 20 69 6e 20 | 74 68 69 73 20 64 6f 63 |ater in |this doc|
|00004cb0| 75 6d 65 6e 74 2e 0d 27 | 63 63 74 62 27 20 72 65 |ument..'|cctb' re|
|00004cc0| 73 6f 75 72 63 65 73 20 | 61 72 65 20 61 6c 73 6f |sources |are also|
|00004cd0| 20 64 69 66 66 65 72 65 | 6e 74 3b 20 68 65 72 65 | differe|nt; here|
|00004ce0| 20 61 72 65 20 74 68 65 | 20 70 61 72 74 20 63 6f | are the| part co|
|00004cf0| 64 65 73 20 61 6e 64 20 | 74 68 65 69 72 20 63 6f |des and |their co|
|00004d00| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 70 61 72 74 |rrespond|ing part|
|00004d10| 73 20 66 6f 72 20 27 63 | 63 74 62 27 3a 0d 50 61 |s for 'c|ctb':.Pa|
|00004d20| 72 74 20 63 6f 64 65 3a | 09 50 61 72 74 20 69 74 |rt code:|.Part it|
|00004d30| 20 63 6f 72 72 65 73 70 | 6f 6e 64 73 20 74 6f 3a | corresp|onds to:|
|00004d40| 0d 30 09 63 46 72 61 6d | 65 43 6f 6c 6f 72 09 46 |.0.cFram|eColor.F|
|00004d50| 72 61 6d 65 73 20 63 6f | 6e 74 72 6f 6c 73 0d 31 |rames co|ntrols.1|
|00004d60| 09 63 42 6f 64 79 43 6f | 6c 6f 72 09 42 61 63 6b |.cBodyCo|lor.Back|
|00004d70| 67 72 6f 75 6e 64 20 63 | 6f 6c 6f 72 20 69 6e 20 |ground c|olor in |
|00004d80| 62 75 74 74 6f 6e 73 0d | 32 09 63 54 65 78 74 43 |buttons.|2.cTextC|
|00004d90| 6f 6c 6f 72 09 49 6e 74 | 65 72 69 6f 72 20 74 65 |olor.Int|erior te|
|00004da0| 78 74 20 69 6e 20 62 75 | 74 74 6f 6e 73 20 61 6e |xt in bu|ttons an|
|00004db0| 64 20 6c 65 67 65 6e 64 | 20 66 6f 72 20 72 61 64 |d legend| for rad|
|00004dc0| 69 6f 20 62 75 74 74 6f | 6e 73 20 61 6e 64 20 63 |io butto|ns and c|
|00004dd0| 68 65 63 6b 20 62 6f 78 | 65 73 0d 33 09 63 54 68 |heck box|es.3.cTh|
|00004de0| 75 6d 62 43 6f 6c 6f 72 | 09 52 65 73 65 72 76 65 |umbColor|.Reserve|
|00004df0| 64 0d 34 09 63 46 69 6c | 6c 50 61 74 43 6f 6c 6f |d.4.cFil|lPatColo|
|00004e00| 72 09 52 65 73 65 72 76 | 65 64 0d 35 09 63 41 72 |r.Reserv|ed.5.cAr|
|00004e10| 72 6f 77 73 43 6f 6c 6f | 72 4c 69 67 68 74 09 55 |rowsColo|rLight.U|
|00004e20| 73 65 64 20 74 6f 20 70 | 72 6f 64 75 63 65 20 63 |sed to p|roduce c|
|00004e30| 6f 6c 6f 72 73 20 69 6e | 20 61 72 72 6f 77 73 20 |olors in| arrows |
|00004e40| 61 6e 64 20 73 63 72 6f | 6c 6c 20 62 61 72 20 62 |and scro|ll bar b|
|00004e50| 61 63 6b 67 72 6f 75 6e | 64 20 63 6f 6c 6f 72 0d |ackgroun|d color.|
|00004e60| 36 09 63 41 72 72 6f 77 | 73 43 6f 6c 6f 72 44 61 |6.cArrow|sColorDa|
|00004e70| 72 6b 09 55 73 65 64 20 | 74 6f 20 70 72 6f 64 75 |rk.Used |to produ|
|00004e80| 63 65 20 63 6f 6c 6f 72 | 73 20 69 6e 20 61 72 72 |ce color|s in arr|
|00004e90| 6f 77 73 20 61 6e 64 20 | 73 63 72 6f 6c 6c 20 62 |ows and |scroll b|
|00004ea0| 61 72 20 62 61 63 6b 67 | 72 6f 75 6e 64 20 63 6f |ar backg|round co|
|00004eb0| 6c 6f 72 0d 37 09 63 54 | 68 75 6d 62 4c 69 67 68 |lor.7.cT|humbLigh|
|00004ec0| 74 09 55 73 65 64 20 74 | 6f 20 70 72 6f 64 75 63 |t.Used t|o produc|
|00004ed0| 65 20 63 6f 6c 6f 72 73 | 20 69 6e 20 74 68 75 6d |e colors| in thum|
|00004ee0| 62 0d 38 09 63 54 68 75 | 6d 62 44 61 72 6b 09 55 |b.8.cThu|mbDark.U|
|00004ef0| 73 65 64 20 74 6f 20 70 | 72 6f 64 75 63 65 20 63 |sed to p|roduce c|
|00004f00| 6f 6c 6f 72 73 20 69 6e | 20 74 68 75 6d 62 0d 39 |olors in| thumb.9|
|00004f10| 09 63 48 69 6c 69 74 65 | 4c 69 67 68 74 09 28 63 |.cHilite|Light.(c|
|00004f20| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 74 6f 20 |orrespon|ding to |
|00004f30| 77 48 69 6c 69 74 65 4c | 69 67 68 74 29 0d 31 30 |wHiliteL|ight).10|
|00004f40| 09 63 48 69 6c 69 74 65 | 44 61 72 6b 09 28 63 6f |.cHilite|Dark.(co|
|00004f50| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 77 |rrespond|ing to w|
|00004f60| 48 69 6c 69 74 65 44 61 | 72 6b 29 0d 31 31 09 63 |HiliteDa|rk).11.c|
|00004f70| 54 69 74 6c 65 42 61 72 | 4c 69 67 68 74 09 28 63 |TitleBar|Light.(c|
|00004f80| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 74 6f 20 |orrespon|ding to |
|00004f90| 77 54 69 74 6c 65 42 61 | 72 4c 69 67 68 74 29 0d |wTitleBa|rLight).|
|00004fa0| 31 32 09 63 54 69 74 6c | 65 42 61 72 44 61 72 6b |12.cTitl|eBarDark|
|00004fb0| 09 28 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |.(corres|ponding |
|00004fc0| 74 6f 20 77 54 69 74 6c | 65 42 61 72 44 61 72 6b |to wTitl|eBarDark|
|00004fd0| 29 0d 31 33 09 63 54 69 | 6e 67 65 4c 69 67 68 74 |).13.cTi|ngeLight|
|00004fe0| 09 28 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |.(corres|ponding |
|00004ff0| 74 6f 20 77 54 69 6e 67 | 65 4c 69 67 68 74 29 20 |to wTing|eLight) |
|00005000| 41 66 66 65 63 74 73 20 | 35 d0 36 20 61 6e 64 20 |Affects |5.6 and |
|00005010| 37 d0 38 20 61 62 6f 76 | 65 0d 31 34 09 63 54 69 |7.8 abov|e.14.cTi|
|00005020| 6e 67 65 44 61 72 6b 09 | 28 63 6f 72 72 65 73 70 |ngeDark.|(corresp|
|00005030| 6f 6e 64 69 6e 67 20 74 | 6f 20 77 54 69 6e 67 65 |onding t|o wTinge|
|00005040| 44 61 72 6b 29 0d 42 75 | 74 20 48 6f 77 20 44 6f |Dark).Bu|t How Do|
|00005050| 65 73 20 49 74 20 57 6f | 72 6b 3f 0d 49 6e 20 53 |es It Wo|rk?.In S|
|00005060| 79 73 74 65 6d 20 37 2c | 20 77 69 6e 64 6f 77 73 |ystem 7,| windows|
|00005070| 20 61 6e 64 20 73 63 72 | 6f 6c 6c 20 62 61 72 73 | and scr|oll bars|
|00005080| 20 61 72 65 20 64 72 61 | 77 6e 20 69 6e 20 63 6f | are dra|wn in co|
|00005090| 6c 6f 72 20 6f 6e 20 61 | 20 63 6f 6c 6f 72 20 64 |lor on a| color d|
|000050a0| 65 76 69 63 65 20 38 20 | 62 69 74 73 20 64 65 65 |evice 8 |bits dee|
|000050b0| 70 20 6f 72 20 6d 6f 72 | 65 20 28 34 20 62 69 74 |p or mor|e (4 bit|
|000050c0| 73 20 64 65 65 70 20 6f | 72 20 6d 6f 72 65 20 69 |s deep o|r more i|
|000050d0| 6e 20 67 72 61 79 2d 73 | 63 61 6c 65 20 64 65 76 |n gray-s|cale dev|
|000050e0| 69 63 65 73 29 20 69 6e | 64 65 70 65 6e 64 65 6e |ices) in|dependen|
|000050f0| 74 20 6f 66 20 74 68 65 | 20 74 79 70 65 20 6f 66 |t of the| type of|
|00005100| 20 67 72 61 66 50 6f 72 | 74 2e 20 54 68 65 20 64 | grafPor|t. The d|
|00005110| 65 73 69 67 6e 20 67 69 | 76 65 73 20 77 69 6e 64 |esign gi|ves wind|
|00005120| 6f 77 73 20 61 6e 64 20 | 73 63 72 6f 6c 6c 20 62 |ows and |scroll b|
|00005130| 61 72 73 20 61 20 d2 67 | 72 61 79 d3 20 6c 6f 6f |ars a .g|ray. loo|
|00005140| 6b 20 77 69 74 68 20 73 | 75 62 74 6c 65 20 63 6f |k with s|ubtle co|
|00005150| 6c 6f 72 20 74 69 6e 74 | 73 20 61 72 6f 75 6e 64 |lor tint|s around|
|00005160| 20 74 68 65 20 63 6f 72 | 6e 65 72 73 3b 20 74 68 | the cor|ners; th|
|00005170| 65 73 65 20 74 69 6e 67 | 65 73 20 61 72 65 20 69 |ese ting|es are i|
|00005180| 6e 74 65 6e 64 65 64 20 | 74 6f 20 67 69 76 65 20 |ntended |to give |
|00005190| 74 68 65 20 75 73 65 72 | 20 68 69 6e 74 73 20 61 |the user| hints a|
|000051a0| 62 6f 75 74 20 74 68 65 | 20 66 75 6e 63 74 69 6f |bout the| functio|
|000051b0| 6e 73 20 6f 66 20 74 68 | 65 20 64 69 66 66 65 72 |ns of th|e differ|
|000051c0| 65 6e 74 20 70 61 72 74 | 73 2e 0d 57 68 65 6e 20 |ent part|s..When |
|000051d0| 61 20 77 69 6e 64 6f 77 | 20 69 73 20 61 63 74 69 |a window| is acti|
|000051e0| 76 65 20 69 74 20 77 69 | 6c 6c 20 62 65 20 64 72 |ve it wi|ll be dr|
|000051f0| 61 77 6e 20 77 69 74 68 | 20 74 68 65 20 66 72 61 |awn with| the fra|
|00005200| 6d 65 20 69 6e 20 77 46 | 72 61 6d 65 43 6f 6c 6f |me in wF|rameColo|
|00005210| 72 2c 20 74 68 65 20 74 | 69 74 6c 65 20 69 6e 20 |r, the t|itle in |
|00005220| 77 54 65 78 74 43 6f 6c | 6f 72 2c 20 61 6e 64 20 |wTextCol|or, and |
|00005230| 74 68 65 20 64 72 61 67 | 20 62 61 72 2c 20 74 68 |the drag| bar, th|
|00005240| 65 20 73 63 72 6f 6c 6c | 20 62 61 72 73 20 61 6e |e scroll| bars an|
|00005250| 64 20 61 6c 6c 20 74 68 | 65 20 67 61 64 67 65 74 |d all th|e gadget|
|00005260| 73 20 28 73 69 7a 65 2c | 20 7a 6f 6f 6d 2c 20 61 |s (size,| zoom, a|
|00005270| 6e 64 20 63 6c 6f 73 65 | 20 62 6f 78 65 73 29 20 |nd close| boxes) |
|00005280| 69 6e 20 61 20 67 72 61 | 79 20 63 6f 6c 6f 72 20 |in a gra|y color |
|00005290| 77 69 74 68 20 74 68 65 | 20 65 64 67 65 73 20 73 |with the| edges s|
|000052a0| 68 6f 77 69 6e 67 20 74 | 68 65 20 74 69 6e 74 73 |howing t|he tints|
|000052b0| 3b 20 6e 6f 74 65 20 74 | 68 61 74 20 69 6e 20 74 |; note t|hat in t|
|000052c0| 68 65 20 63 6f 6e 74 65 | 78 74 20 6f 66 20 74 68 |he conte|xt of th|
|000052d0| 69 73 20 54 65 63 68 6e | 69 63 61 6c 20 4e 6f 74 |is Techn|ical Not|
|000052e0| 65 20 67 72 61 79 20 63 | 6f 6c 6f 72 20 63 61 6e |e gray c|olor can|
|000052f0| 20 62 65 20 64 69 66 66 | 65 72 65 6e 74 20 66 72 | be diff|erent fr|
|00005300| 6f 6d 20 52 47 42 20 67 | 72 61 79 20 28 52 3d 47 |om RGB g|ray (R=G|
|00005310| 3d 42 29 3b 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |=B); for| example|
|00005320| 2c 20 69 66 20 74 68 65 | 20 6c 69 67 68 74 20 63 |, if the| light c|
|00005330| 6f 6c 6f 72 20 69 73 20 | 72 65 64 20 61 6e 64 20 |olor is |red and |
|00005340| 74 68 65 20 64 61 72 6b | 20 63 6f 6c 6f 72 20 69 |the dark| color i|
|00005350| 73 20 62 6c 75 65 20 74 | 68 65 6e 20 74 68 65 20 |s blue t|hen the |
|00005360| d2 67 72 61 79 d3 20 72 | 65 73 75 6c 74 20 77 69 |.gray. r|esult wi|
|00005370| 6c 6c 20 62 65 20 70 75 | 72 70 6c 65 2e 20 49 74 |ll be pu|rple. It|
|00005380| 20 69 73 20 61 6c 73 6f | 20 69 6d 70 6f 72 74 61 | is also| importa|
|00005390| 6e 74 20 74 6f 20 6e 6f | 74 65 20 74 68 61 74 20 |nt to no|te that |
|000053a0| 74 68 65 20 65 78 61 63 | 74 20 67 72 61 79 20 72 |the exac|t gray r|
|000053b0| 65 73 75 6c 74 20 6d 61 | 79 20 6e 6f 74 20 62 65 |esult ma|y not be|
|000053c0| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 20 74 68 | availab|le in th|
|000053d0| 65 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 20 6f 66 |e color |table of|
|000053e0| 20 74 68 65 20 74 61 72 | 67 65 74 20 64 65 76 69 | the tar|get devi|
|000053f0| 63 65 20 69 6e 20 77 68 | 69 63 68 20 63 61 73 65 |ce in wh|ich case|
|00005400| 20 61 20 63 6c 6f 73 65 | 20 65 71 75 69 76 61 6c | a close| equival|
|00005410| 65 6e 74 20 69 73 20 75 | 73 65 64 2e 20 49 6e 20 |ent is u|sed. In |
|00005420| 74 68 65 20 63 61 73 65 | 73 20 77 68 65 6e 20 74 |the case|s when t|
|00005430| 68 65 72 65 20 69 73 20 | 6e 6f 20 65 71 75 69 76 |here is |no equiv|
|00005440| 61 6c 65 6e 74 20 61 76 | 61 69 6c 61 62 6c 65 2c |alent av|ailable,|
|00005450| 20 74 68 65 6e 20 74 68 | 65 20 73 79 73 74 65 6d | then th|e system|
|00005460| 20 72 65 73 6f 72 74 73 | 20 74 6f 20 62 6c 61 63 | resorts| to blac|
|00005470| 6b 2d 61 6e 64 2d 77 68 | 69 74 65 20 28 6f 6c 64 |k-and-wh|ite (old|
|00005480| 2d 73 74 79 6c 65 29 20 | 77 69 6e 64 6f 77 73 2e |-style) |windows.|
|00005490| 0d 57 68 65 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |.When th|e window|
|000054a0| 20 69 73 20 69 6e 61 63 | 74 69 76 65 2c 20 74 68 | is inac|tive, th|
|000054b0| 65 20 66 72 61 6d 65 20 | 69 73 20 64 72 61 77 6e |e frame |is drawn|
|000054c0| 20 69 6e 20 61 20 67 72 | 61 79 65 64 20 77 46 72 | in a gr|ayed wFr|
|000054d0| 61 6d 65 43 6f 6c 6f 72 | 20 74 6f 20 69 6e 64 69 |ameColor| to indi|
|000054e0| 63 61 74 65 20 69 74 73 | 20 64 69 73 61 62 6c 65 |cate its| disable|
|000054f0| 64 20 73 74 61 74 65 3b | 20 74 68 65 20 64 72 61 |d state;| the dra|
|00005500| 67 20 62 61 72 2c 20 74 | 68 65 20 67 61 64 67 65 |g bar, t|he gadge|
|00005510| 74 73 2c 20 61 6e 64 20 | 74 68 65 20 73 63 72 6f |ts, and |the scro|
|00005520| 6c 6c 20 62 61 72 20 6f | 66 20 74 68 65 20 77 69 |ll bar o|f the wi|
|00005530| 6e 64 6f 77 20 61 72 65 | 20 77 68 69 74 65 64 20 |ndow are| whited |
|00005540| 6f 75 74 20 61 6e 64 20 | 74 68 65 20 74 69 74 6c |out and |the titl|
|00005550| 65 20 77 69 6c 6c 20 62 | 65 20 67 72 61 79 65 64 |e will b|e grayed|
|00005560| 20 6f 75 74 20 28 75 73 | 69 6e 67 20 67 72 61 79 | out (us|ing gray|
|00005570| 20 63 6f 6c 6f 72 20 74 | 6f 20 64 69 73 70 6c 61 | color t|o displa|
|00005580| 79 20 74 65 78 74 2c 20 | 6e 6f 74 20 74 68 65 20 |y text, |not the |
|00005590| 64 69 74 68 65 72 65 64 | 20 67 72 61 79 20 70 72 |dithered| gray pr|
|000055a0| 6f 64 75 63 65 64 20 77 | 69 74 68 20 61 20 35 30 |oduced w|ith a 50|
|000055b0| 20 70 65 72 63 65 6e 74 | 20 70 61 74 74 65 72 6e | percent| pattern|
|000055c0| 29 20 62 61 73 65 64 20 | 6f 6e 20 77 48 69 6c 69 |) based |on wHili|
|000055d0| 74 65 43 6f 6c 6f 72 4c | 69 67 68 74 20 61 6e 64 |teColorL|ight and|
|000055e0| 20 77 48 69 6c 69 74 65 | 43 6f 6c 6f 72 44 61 72 | wHilite|ColorDar|
|000055f0| 6b 2e 20 57 68 65 6e 20 | 74 68 65 20 67 61 64 67 |k. When |the gadg|
|00005600| 65 74 73 20 6f 66 20 61 | 20 73 63 72 6f 6c 6c 20 |ets of a| scroll |
|00005610| 62 61 72 20 28 74 68 75 | 6d 62 20 61 6e 64 20 61 |bar (thu|mb and a|
|00005620| 72 72 6f 77 73 29 20 61 | 72 65 20 65 6e 61 62 6c |rrows) a|re enabl|
|00005630| 65 64 2c 20 74 68 65 79 | 20 61 72 65 20 64 72 61 |ed, they| are dra|
|00005640| 77 6e 20 69 6e 20 67 72 | 61 79 20 77 69 74 68 20 |wn in gr|ay with |
|00005650| 74 69 6e 74 69 6e 67 20 | 28 63 6f 6f 72 64 69 6e |tinting |(coordin|
|00005660| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 20 63 6f |ated wit|h the co|
|00005670| 6c 6f 72 20 74 68 65 6d | 65 20 75 73 65 64 20 62 |lor them|e used b|
|00005680| 79 20 74 68 65 20 77 69 | 6e 64 6f 77 21 29 3b 20 |y the wi|ndow!); |
|00005690| 77 68 65 6e 20 64 69 73 | 61 62 6c 65 64 20 74 68 |when dis|abled th|
|000056a0| 65 20 74 68 75 6d 62 20 | 64 69 73 61 70 70 65 61 |e thumb |disappea|
|000056b0| 72 73 20 61 6c 74 6f 67 | 65 74 68 65 72 20 61 6e |rs altog|ether an|
|000056c0| 64 20 74 68 65 20 61 72 | 72 6f 77 73 20 73 68 6f |d the ar|rows sho|
|000056d0| 77 20 69 6e 20 67 72 61 | 79 2c 20 62 75 79 20 77 |w in gra|y, buy w|
|000056e0| 69 74 68 20 6e 6f 20 74 | 69 6e 67 65 73 2e 0d 49 |ith no t|inges..I|
|000056f0| 6e 20 6b 65 65 70 69 6e | 67 20 74 68 65 20 6f 76 |n keepin|g the ov|
|00005700| 65 72 61 6c 6c 20 73 63 | 68 65 6d 65 20 6f 66 20 |erall sc|heme of |
|00005710| 63 6f 6c 6f 72 20 69 6e | 74 65 72 66 61 63 65 2c |color in|terface,|
|00005720| 20 74 68 65 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 | the bac|kground |
|00005730| 70 61 74 74 65 72 6e 20 | 6f 66 20 73 63 72 6f 6c |pattern |of scrol|
|00005740| 6c 20 62 61 72 73 20 68 | 61 73 20 74 6f 20 62 65 |l bars h|as to be|
|00005750| 20 61 20 67 72 61 79 20 | 70 61 74 74 65 72 6e 20 | a gray |pattern |
|00005760| 62 61 73 65 64 20 6f 6e | 20 63 41 72 72 6f 77 73 |based on| cArrows|
|00005770| 43 6f 6c 6f 72 4c 69 67 | 68 74 20 61 6e 64 20 63 |ColorLig|ht and c|
|00005780| 41 72 72 6f 77 73 43 6f | 6c 6f 72 44 61 72 6b 3b |ArrowsCo|lorDark;|
|00005790| 20 77 68 65 6e 20 74 68 | 65 20 73 63 72 6f 6c 6c | when th|e scroll|
|000057a0| 20 62 61 72 20 69 73 20 | 64 69 73 61 62 6c 65 64 | bar is |disabled|
|000057b0| 20 28 77 68 65 6e 20 6e | 6f 20 73 63 72 6f 6c 6c | (when n|o scroll|
|000057c0| 69 6e 67 20 69 73 20 6e | 65 63 65 73 73 61 72 79 |ing is n|ecessary|
|000057d0| 20 74 6f 20 73 68 6f 77 | 20 61 6c 6c 20 74 68 65 | to show| all the|
|000057e0| 20 69 74 65 6d 73 20 69 | 6e 20 61 20 77 69 6e 64 | items i|n a wind|
|000057f0| 6f 77 29 20 74 68 65 6e | 20 74 68 65 20 73 63 72 |ow) then| the scr|
|00005800| 6f 6c 6c 20 62 61 72 20 | 77 69 6c 6c 20 62 65 20 |oll bar |will be |
|00005810| 64 69 73 70 6c 61 79 65 | 64 20 69 6e 20 61 20 73 |displaye|d in a s|
|00005820| 6f 6c 69 64 20 67 72 61 | 79 2e 20 44 6f 6e d5 74 |olid gra|y. Don.t|
|00005830| 20 63 6f 6e 66 75 73 65 | 20 74 68 69 73 20 67 72 | confuse| this gr|
|00005840| 61 79 65 64 20 6f 75 74 | 20 73 74 61 74 65 20 77 |ayed out| state w|
|00005850| 69 74 68 20 75 6e 73 65 | 6c 65 63 74 65 64 20 77 |ith unse|lected w|
|00005860| 69 6e 64 6f 77 73 20 74 | 68 61 74 20 70 72 65 73 |indows t|hat pres|
|00005870| 65 6e 74 20 74 68 65 20 | 73 63 72 6f 6c 6c 20 62 |ent the |scroll b|
|00005880| 61 72 73 20 61 73 20 77 | 65 6c 6c 20 61 73 20 74 |ars as w|ell as t|
|00005890| 68 65 20 64 72 61 67 20 | 62 61 72 20 61 6e 64 20 |he drag |bar and |
|000058a0| 61 6c 6c 20 67 61 64 67 | 65 74 73 20 63 6f 6d 70 |all gadg|ets comp|
|000058b0| 6c 65 74 65 6c 79 20 77 | 68 69 74 65 64 20 6f 75 |letely w|hited ou|
|000058c0| 74 2e 0d 46 69 67 75 72 | 65 20 31 20 20 41 63 74 |t..Figur|e 1 Act|
|000058d0| 69 76 65 20 57 69 6e 64 | 6f 77 d1 41 63 74 69 76 |ive Wind|ow.Activ|
|000058e0| 65 20 73 63 72 6f 6c 6c | 20 62 61 72 73 0d 46 69 |e scroll| bars.Fi|
|000058f0| 67 75 72 65 20 32 20 20 | 41 63 74 69 76 65 20 57 |gure 2 |Active W|
|00005900| 69 6e 64 6f 77 d1 48 6f | 72 69 7a 6f 6e 74 61 6c |indow.Ho|rizontal|
|00005910| 20 73 63 72 6f 6c 6c 20 | 62 61 72 20 64 69 73 61 | scroll |bar disa|
|00005920| 62 6c 65 64 0d 46 69 67 | 75 72 65 20 33 20 20 49 |bled.Fig|ure 3 I|
|00005930| 6e 61 63 74 69 76 65 20 | 57 69 6e 64 6f 77 d1 4e |nactive |Window.N|
|00005940| 6f 74 69 63 65 20 67 72 | 61 79 20 74 69 74 6c 65 |otice gr|ay title|
|00005950| 0d a5 44 69 61 6c 6f 67 | 20 61 6e 64 20 41 6c 65 |..Dialog| and Ale|
|00005960| 72 74 20 42 6f 78 65 73 | 0d a5 0d a5 44 69 61 6c |rt Boxes|....Dial|
|00005970| 6f 67 20 61 6e 64 20 61 | 6c 65 72 74 20 62 6f 78 |og and a|lert box|
|00005980| 65 73 20 68 61 76 65 20 | 61 6c 73 6f 20 62 65 65 |es have |also bee|
|00005990| 6e 20 63 6f 6c 6f 72 69 | 7a 65 64 20 66 6f 6c 6c |n colori|zed foll|
|000059a0| 6f 77 69 6e 67 20 74 68 | 65 20 73 61 6d 65 20 74 |owing th|e same t|
|000059b0| 68 65 6d 65 20 61 73 20 | 69 6e 20 77 69 6e 64 6f |heme as |in windo|
|000059c0| 77 73 2c 20 62 75 74 20 | 69 6e 73 74 65 61 64 20 |ws, but |instead |
|000059d0| 6f 66 20 61 20 74 69 6e | 67 65 64 20 62 6f 72 64 |of a tin|ged bord|
|000059e0| 65 72 2c 20 64 69 61 6c | 6f 67 20 61 6e 64 20 61 |er, dial|og and a|
|000059f0| 6c 65 72 74 20 62 6f 78 | 65 73 20 61 72 65 20 64 |lert box|es are d|
|00005a00| 69 73 70 6c 61 79 65 64 | 20 77 69 74 68 20 61 20 |isplayed| with a |
|00005a10| 62 65 76 65 6c 65 64 20 | 62 6f 72 64 65 72 20 6f |beveled |border o|
|00005a20| 75 74 6c 69 6e 65 64 20 | 77 69 74 68 20 62 6c 61 |utlined |with bla|
|00005a30| 63 6b 3b 20 74 68 65 20 | 62 65 76 65 6c 2c 20 77 |ck; the |bevel, w|
|00005a40| 69 74 68 20 69 74 73 20 | 73 70 65 63 74 72 75 6d |ith its |spectrum|
|00005a50| 20 6f 66 20 63 6f 6c 6f | 72 73 20 73 70 72 65 61 | of colo|rs sprea|
|00005a60| 64 69 6e 67 20 62 65 74 | 77 65 65 6e 20 77 44 69 |ding bet|ween wDi|
|00005a70| 61 6c 6f 67 4c 69 67 68 | 74 20 61 6e 64 20 77 44 |alogLigh|t and wD|
|00005a80| 69 61 6c 6f 67 44 61 72 | 6b 20 61 73 20 69 6e 64 |ialogDar|k as ind|
|00005a90| 69 63 61 74 65 64 20 62 | 79 20 44 69 61 6c 6f 67 |icated b|y Dialog|
|00005aa0| 53 68 61 64 65 73 20 70 | 72 6f 64 75 63 65 20 61 |Shades p|roduce a|
|00005ab0| 20 74 68 72 65 65 2d 64 | 69 6d 65 6e 73 69 6f 6e | three-d|imension|
|00005ac0| 61 6c 20 65 66 66 65 63 | 74 2e 20 57 68 65 6e 20 |al effec|t. When |
|00005ad0| 61 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 62 65 63 |a dialog| box bec|
|00005ae0| 6f 6d 65 73 20 69 6e 61 | 63 74 69 76 65 2c 20 74 |omes ina|ctive, t|
|00005af0| 68 65 20 6f 75 74 6c 69 | 6e 65 20 72 65 76 65 72 |he outli|ne rever|
|00005b00| 74 73 20 74 6f 20 67 72 | 61 79 2e 0d 52 65 67 61 |ts to gr|ay..Rega|
|00005b10| 72 64 6c 65 73 73 20 6f | 66 20 74 68 65 20 70 6f |rdless o|f the po|
|00005b20| 72 74 20 28 47 72 61 66 | 50 6f 72 74 20 6f 72 20 |rt (Graf|Port or |
|00005b30| 43 47 72 61 66 50 6f 72 | 74 29 2e 20 64 69 61 6c |CGrafPor|t). dial|
|00005b40| 6f 67 20 61 6e 64 20 61 | 6c 65 72 74 20 62 6f 78 |og and a|lert box|
|00005b50| 65 73 20 61 72 65 20 64 | 69 73 70 6c 61 79 65 64 |es are d|isplayed|
|00005b60| 20 75 73 69 6e 67 20 74 | 68 65 20 73 68 61 64 69 | using t|he shadi|
|00005b70| 6e 67 20 73 63 68 65 6d | 65 20 77 68 65 6e 20 74 |ng schem|e when t|
|00005b80| 68 65 20 74 61 72 67 65 | 74 20 64 65 76 69 63 65 |he targe|t device|
|00005b90| 20 69 73 20 73 65 74 20 | 74 6f 20 38 20 62 69 74 | is set |to 8 bit|
|00005ba0| 73 20 70 65 72 20 70 69 | 78 65 6c 20 6f 72 20 6d |s per pi|xel or m|
|00005bb0| 6f 72 65 20 61 6e 64 20 | 63 6f 6c 6f 72 73 2c 20 |ore and |colors, |
|00005bc0| 6f 72 20 77 68 65 6e 20 | 74 68 65 20 74 61 72 67 |or when |the targ|
|00005bd0| 65 74 20 64 65 76 69 63 | 65 20 69 73 20 67 72 61 |et devic|e is gra|
|00005be0| 79 20 73 63 61 6c 65 20 | 61 6e 64 20 73 65 74 20 |y scale |and set |
|00005bf0| 74 6f 20 34 20 62 69 74 | 73 20 70 65 72 20 70 69 |to 4 bit|s per pi|
|00005c00| 78 65 6c 20 6f 72 20 6d | 6f 72 65 2e 0d 42 75 74 |xel or m|ore..But|
|00005c10| 74 6f 6e 73 2c 20 52 61 | 64 69 6f 20 42 75 74 74 |tons, Ra|dio Butt|
|00005c20| 6f 6e 73 2c 20 43 68 65 | 63 6b 20 42 6f 78 65 73 |ons, Che|ck Boxes|
|00005c30| 20 61 6e 64 20 54 65 78 | 74 0d 53 63 72 6f 6c 6c | and Tex|t.Scroll|
|00005c40| 20 62 61 72 73 20 61 72 | 65 20 6e 6f 74 20 74 68 | bars ar|e not th|
|00005c50| 65 20 6f 6e 6c 79 20 63 | 6f 6e 74 72 6f 6c 73 20 |e only c|ontrols |
|00005c60| 61 66 66 65 63 74 65 64 | 20 62 79 20 27 63 63 74 |affected| by 'cct|
|00005c70| 62 27 20 72 65 73 6f 75 | 72 63 65 73 2e 20 49 6e |b' resou|rces. In|
|00005c80| 20 67 65 6e 65 72 61 6c | 20 74 68 65 20 6e 61 6d | general| the nam|
|00005c90| 65 73 20 6f 66 20 74 68 | 65 20 70 61 72 74 73 20 |es of th|e parts |
|00005ca0| 67 69 76 65 20 61 20 63 | 6c 65 61 72 20 69 64 65 |give a c|lear ide|
|00005cb0| 61 20 6f 66 20 77 68 61 | 74 20 65 66 66 65 63 74 |a of wha|t effect|
|00005cc0| 20 69 73 20 70 72 6f 64 | 75 63 65 64 20 62 79 20 | is prod|uced by |
|00005cd0| 61 20 67 69 76 65 6e 20 | 63 6f 6c 6f 72 2e 20 4f |a given |color. O|
|00005ce0| 6e 65 20 61 72 65 61 20 | 74 68 61 74 20 69 73 20 |ne area |that is |
|00005cf0| 73 6c 69 67 68 74 6c 79 | 20 64 69 66 66 65 72 65 |slightly| differe|
|00005d00| 6e 74 20 69 73 20 74 65 | 78 74 3b 20 74 68 65 20 |nt is te|xt; the |
|00005d10| 74 65 78 74 20 69 6e 20 | 62 75 74 74 6f 6e 73 20 |text in |buttons |
|00005d20| 69 73 20 64 72 61 77 6e | 20 75 73 69 6e 67 20 63 |is drawn| using c|
|00005d30| 54 65 78 74 43 6f 6c 6f | 72 20 69 6e 20 61 20 66 |TextColo|r in a f|
|00005d40| 61 73 68 69 6f 6e 20 73 | 69 6d 69 6c 61 72 20 74 |ashion s|imilar t|
|00005d50| 6f 20 70 72 65 2d 53 79 | 73 74 65 6d 20 37 20 73 |o pre-Sy|stem 7 s|
|00005d60| 79 73 74 65 6d 73 2c 20 | 62 75 74 20 77 68 65 6e |ystems, |but when|
|00005d70| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 69 73 20 64 | the but|ton is d|
|00005d80| 69 73 61 62 6c 65 64 2c | 20 74 68 65 20 6e 65 77 |isabled,| the new|
|00005d90| 20 73 79 73 74 65 6d 20 | 64 69 73 70 6c 61 79 73 | system |displays|
|00005da0| 20 74 68 65 20 74 65 78 | 74 20 75 73 69 6e 67 20 | the tex|t using |
|00005db0| 67 72 61 79 20 63 6f 6c | 6f 72 20 69 6e 73 74 65 |gray col|or inste|
|00005dc0| 61 64 20 6f 66 20 75 73 | 69 6e 67 20 64 69 74 68 |ad of us|ing dith|
|00005dd0| 65 72 65 64 20 67 72 61 | 79 20 6c 69 6b 65 20 69 |ered gra|y like i|
|00005de0| 74 20 64 69 64 20 69 6e | 20 65 61 72 6c 69 65 72 |t did in| earlier|
|00005df0| 20 73 79 73 74 65 6d 73 | 2e 0d 41 20 67 72 61 79 | systems|..A gray|
|00005e00| 20 63 6f 6c 6f 72 20 69 | 73 20 75 73 65 64 20 74 | color i|s used t|
|00005e10| 6f 20 64 72 61 77 20 74 | 68 65 20 74 65 78 74 20 |o draw t|he text |
|00005e20| 6f 66 20 64 69 73 61 62 | 6c 65 64 20 62 75 74 74 |of disab|led butt|
|00005e30| 6f 6e 73 20 77 68 65 6e | 65 76 65 72 20 74 68 65 |ons when|ever the|
|00005e40| 20 64 69 61 6c 6f 67 20 | 69 73 20 61 20 43 47 72 | dialog |is a CGr|
|00005e50| 61 66 50 6f 72 74 20 61 | 6e 64 20 74 68 65 20 64 |afPort a|nd the d|
|00005e60| 65 70 74 68 20 6f 66 20 | 74 68 65 20 74 61 72 67 |epth of |the targ|
|00005e70| 65 74 20 64 65 76 69 63 | 65 20 69 73 20 32 20 62 |et devic|e is 2 b|
|00005e80| 69 74 73 20 70 65 72 20 | 70 69 78 65 6c 20 6f 72 |its per |pixel or|
|00005e90| 20 6d 6f 72 65 2e 20 44 | 69 61 6c 6f 67 20 62 6f | more. D|ialog bo|
|00005ea0| 78 65 73 20 62 61 73 65 | 64 20 6f 6e 20 6f 6c 64 |xes base|d on old|
|00005eb0| 2d 73 74 79 6c 65 20 70 | 6f 72 74 73 20 77 69 6c |-style p|orts wil|
|00005ec0| 6c 20 64 69 73 70 6c 61 | 79 20 64 69 73 61 62 6c |l displa|y disabl|
|00005ed0| 65 64 20 74 65 78 74 20 | 75 73 69 6e 67 20 74 68 |ed text |using th|
|00005ee0| 65 20 6f 6c 64 20 64 69 | 74 68 65 72 65 64 20 67 |e old di|thered g|
|00005ef0| 72 61 79 2e 20 0d 54 68 | 65 20 74 65 78 74 20 61 |ray. .Th|e text a|
|00005f00| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 72 |ssociate|d with r|
|00005f10| 61 64 69 6f 20 62 75 74 | 74 6f 6e 73 20 61 6e 64 |adio but|tons and|
|00005f20| 20 63 68 65 63 6b 20 62 | 6f 78 65 73 20 66 6f 6c | check b|oxes fol|
|00005f30| 6c 6f 77 73 20 74 68 65 | 20 73 61 6d 65 20 70 72 |lows the| same pr|
|00005f40| 69 6e 63 69 70 6c 65 73 | 2e 20 54 65 78 74 20 69 |inciples|. Text i|
|00005f50| 73 20 74 68 65 20 6b 65 | 79 20 74 6f 20 69 6e 64 |s the ke|y to ind|
|00005f60| 69 63 61 74 65 20 74 68 | 65 20 73 74 61 74 65 20 |icate th|e state |
|00005f70| 28 65 6e 61 62 6c 65 64 | 20 6f 72 20 6e 6f 74 29 |(enabled| or not)|
|00005f80| 20 6f 66 20 72 61 64 69 | 6f 20 62 75 74 74 6f 6e | of radi|o button|
|00005f90| 73 20 61 6e 64 20 63 68 | 65 63 6b 20 62 6f 78 65 |s and ch|eck boxe|
|00005fa0| 73 20 73 69 6e 63 65 20 | 74 68 65 20 62 6f 64 79 |s since |the body|
|00005fb0| 20 6f 66 20 72 61 64 69 | 6f 20 62 75 74 74 6f 6e | of radi|o button|
|00005fc0| 73 20 61 6e 64 20 63 68 | 65 63 6b 20 62 6f 78 65 |s and ch|eck boxe|
|00005fd0| 73 20 69 73 20 64 72 61 | 77 6e 20 75 73 69 6e 67 |s is dra|wn using|
|00005fe0| 20 63 46 72 61 6d 65 43 | 6f 6c 6f 72 20 77 68 65 | cFrameC|olor whe|
|00005ff0| 74 68 65 72 20 74 68 65 | 20 63 6f 6e 74 72 6f 6c |ther the| control|
|00006000| 20 69 73 20 65 6e 61 62 | 6c 65 64 20 6f 72 20 6e | is enab|led or n|
|00006010| 6f 74 2e 0d 41 6e 64 20 | 66 6f 72 20 54 68 6f 73 |ot..And |for Thos|
|00006020| 65 20 57 68 6f 20 45 6b | 65 20 4f 75 74 20 61 20 |e Who Ek|e Out a |
|00006030| 4c 69 76 69 6e 67 20 61 | 74 20 74 68 65 20 44 65 |Living a|t the De|
|00006040| 65 70 20 45 6e 64 20 c9 | 0d 41 6c 74 68 6f 75 67 |ep End .|.Althoug|
|00006050| 68 20 72 65 61 64 69 6c | 79 20 61 76 61 69 6c 61 |h readil|y availa|
|00006060| 62 6c 65 2c 20 74 68 65 | 20 27 57 44 45 46 27 20 |ble, the| 'WDEF' |
|00006070| 63 6f 64 65 20 68 61 73 | 20 70 72 6f 76 65 6e 20 |code has| proven |
|00006080| 74 6f 20 62 65 20 61 20 | 6c 69 74 74 6c 65 20 62 |to be a |little b|
|00006090| 69 74 20 64 69 66 66 69 | 63 75 6c 74 20 61 20 73 |it diffi|cult a s|
|000060a0| 6f 75 72 63 65 20 6f 66 | 20 69 6e 66 6f 72 6d 61 |ource of| informa|
|000060b0| 74 69 6f 6e 20 66 6f 72 | 20 64 65 76 65 6c 6f 70 |tion for| develop|
|000060c0| 65 72 73 20 77 61 6e 74 | 69 6e 67 20 74 6f 20 61 |ers want|ing to a|
|000060d0| 64 64 20 53 79 73 74 65 | 6d 20 37 20 63 6f 6c 6f |dd Syste|m 7 colo|
|000060e0| 72 20 74 6f 20 74 68 65 | 69 72 20 6f 77 6e 20 27 |r to the|ir own '|
|000060f0| 57 44 45 46 27 73 2e 20 | 54 68 65 20 66 6f 6c 6c |WDEF's. |The foll|
|00006100| 6f 77 69 6e 67 20 69 73 | 20 61 6e 20 61 74 74 65 |owing is| an atte|
|00006110| 6d 70 74 20 74 6f 20 68 | 65 6c 70 20 74 68 6f 73 |mpt to h|elp thos|
|00006120| 65 20 64 65 76 65 6c 6f | 70 65 72 73 20 73 65 65 |e develo|pers see|
|00006130| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 6d 75 64 | through| the mud|
|00006140| 2e 0d 41 73 20 6d 65 6e | 74 69 6f 6e 65 64 20 62 |..As men|tioned b|
|00006150| 65 66 6f 72 65 2c 20 74 | 68 65 20 63 6f 6c 6f 72 |efore, t|he color|
|00006160| 20 70 72 65 73 65 6e 74 | 20 69 6e 20 74 68 65 20 | present| in the |
|00006170| 27 77 63 74 62 27 20 69 | 73 20 75 73 65 64 20 62 |'wctb' i|s used b|
|00006180| 6f 74 68 20 64 69 72 65 | 63 74 6c 79 20 61 6e 64 |oth dire|ctly and|
|00006190| 20 61 73 20 73 68 61 64 | 65 73 20 6f 62 74 61 69 | as shad|es obtai|
|000061a0| 6e 65 64 20 62 79 20 6d | 69 78 69 6e 67 20 6c 69 |ned by m|ixing li|
|000061b0| 67 68 74 20 61 6e 64 20 | 64 61 72 6b 20 63 6f 6c |ght and |dark col|
|000061c0| 6f 72 73 2e 20 54 68 65 | 20 71 75 65 73 74 69 6f |ors. The| questio|
|000061d0| 6e 20 69 73 20 77 68 69 | 63 68 20 63 6f 6c 6f 72 |n is whi|ch color|
|000061e0| 73 20 61 6e 64 20 69 6e | 20 77 68 61 74 20 70 72 |s and in| what pr|
|000061f0| 6f 70 6f 72 74 69 6f 6e | 73 3b 20 74 68 65 20 61 |oportion|s; the a|
|00006200| 6e 73 77 65 72 20 74 6f | 20 68 6f 77 20 74 6f 20 |nswer to| how to |
|00006210| 6d 69 78 20 74 68 65 20 | 63 6f 6c 6f 72 20 69 73 |mix the |color is|
|00006220| 20 74 68 65 20 73 68 61 | 64 65 20 74 61 62 6c 65 | the sha|de table|
|00006230| 73 20 66 6f 75 6e 64 20 | 69 6e 20 74 68 65 20 27 |s found |in the '|
|00006240| 57 44 45 46 27 3a 0d 09 | 09 20 20 20 20 43 6f 6c |WDEF':..|. Col|
|00006250| 6f 72 73 20 66 72 6f 6d | 20 27 77 63 74 62 27 0d |ors from| 'wctb'.|
|00006260| 09 09 09 4c 69 67 68 74 | 20 43 6f 6c 6f 72 20 20 |...Light| Color |
|00006270| 44 61 72 6b 20 43 6f 6c | 6f 72 09 09 20 20 52 61 |Dark Col|or.. Ra|
|00006280| 74 65 09 09 20 20 20 20 | 20 20 53 68 61 64 65 0d |te.. | Shade.|
|00006290| 48 69 6c 69 74 65 53 68 | 61 64 65 73 09 09 77 48 |HiliteSh|ades..wH|
|000062a0| 69 6c 69 74 65 4c 69 67 | 68 74 2c 20 77 48 69 6c |iliteLig|ht, wHil|
|000062b0| 69 74 65 44 61 72 6b 2c | 20 09 09 20 20 24 30 09 |iteDark,| .. $0.|
|000062c0| 09 3b 20 77 48 69 6c 69 | 74 65 53 68 61 64 65 30 |.; wHili|teShade0|
|000062d0| 0d 09 09 09 77 48 69 6c | 69 74 65 4c 69 67 68 74 |....wHil|iteLight|
|000062e0| 2c 20 77 48 69 6c 69 74 | 65 44 61 72 6b 2c 20 09 |, wHilit|eDark, .|
|000062f0| 09 20 20 24 37 09 09 3b | 20 77 48 69 6c 69 74 65 |. $7..;| wHilite|
|00006300| 53 68 61 64 65 37 0d 09 | 09 09 77 48 69 6c 69 74 |Shade7..|..wHilit|
|00006310| 65 4c 69 67 68 74 2c 20 | 77 48 69 6c 69 74 65 44 |eLight, |wHiliteD|
|00006320| 61 72 6b 2c 20 09 20 09 | 20 20 24 38 09 09 3b 20 |ark, . .| $8..; |
|00006330| 77 48 69 6c 69 74 65 53 | 68 61 64 65 38 0d 09 09 |wHiliteS|hade8...|
|00006340| 09 77 48 69 6c 69 74 65 | 4c 69 67 68 74 2c 20 77 |.wHilite|Light, w|
|00006350| 48 69 6c 69 74 65 44 61 | 72 6b 2c 20 20 09 09 20 |HiliteDa|rk, .. |
|00006360| 20 24 41 09 09 3b 20 77 | 48 69 6c 69 74 65 53 68 | $A..; w|HiliteSh|
|00006370| 61 64 65 41 0d 09 09 09 | 77 48 69 6c 69 74 65 4c |adeA....|wHiliteL|
|00006380| 69 67 68 74 2c 20 77 48 | 69 6c 69 74 65 44 61 72 |ight, wH|iliteDar|
|00006390| 6b 2c 20 09 20 09 20 20 | 24 44 09 09 3b 20 77 48 |k, . . |$D..; wH|
|000063a0| 69 6c 69 74 65 53 68 61 | 64 65 44 0d 54 69 74 6c |iliteSha|deD.Titl|
|000063b0| 65 42 61 72 53 68 61 64 | 65 73 09 77 54 69 74 6c |eBarShad|es.wTitl|
|000063c0| 65 42 61 72 4c 69 67 68 | 74 2c 20 77 54 69 74 6c |eBarLigh|t, wTitl|
|000063d0| 65 42 61 72 44 61 72 6b | 2c 09 20 20 24 30 09 09 |eBarDark|,. $0..|
|000063e0| 3b 20 77 54 69 74 6c 65 | 42 61 72 53 68 61 64 65 |; wTitle|BarShade|
|000063f0| 30 0d 09 09 09 77 54 69 | 74 6c 65 42 61 72 4c 69 |0....wTi|tleBarLi|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.